@ScalarOperator(CAST)
    @SqlType(StandardTypes.BOOLEAN)
    public static boolean castToBoolean(@SqlType(StandardTypes.REAL) long value)
    {
        return intBitsToFloat((int) value) != 0.0f;
    }
@Test
    public void testCastToBoolean()
    {
        assertFunction("CAST(REAL'754.1985' AS BOOLEAN)", BOOLEAN, true);
        assertFunction("CAST(REAL'0.0' AS BOOLEAN)", BOOLEAN, false);
        assertFunction("CAST(REAL'-0.0' AS BOOLEAN)", BOOLEAN, false);
    }