presto-main/src/main/java/io/prestosql/type/BigintOperators.java/BigintOperators/saturatedFloorCastToSmallint
class BigintOperators:    @ScalarOperator(SATURATED_FLOOR_CAST)
    @SqlType(StandardTypes.SMALLINT)
    public static long saturatedFloorCastToSmallint(@SqlType(StandardTypes.BIGINT) long value)
    {
        return Shorts.saturatedCast(value);
    }