presto-main/src/main/java/io/prestosql/type/RealOperators.java/RealOperators/castToLong
class RealOperators:    @ScalarOperator(CAST)
    @SqlType(StandardTypes.BIGINT)
    public static long castToLong(@SqlType(StandardTypes.REAL) long value)
    {
        return (long) MathFunctions.round((double) intBitsToFloat((int) value));
    }