public BooleanWritable evaluate(NullWritable i) {
    return null;
  }
Convert a void to boolean. This is called for CAST(... AS BOOLEAN)

@param i
         The value of a void type
@return BooleanWritable
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToBoolean.java