presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/PartitionTable.java/PartitionTable/convert
class PartitionTable:    private static Object convert(Object value, Type type)
    {
        if (value == null) {
            return null;
        }
        if (type instanceof Types.StringType) {
            return value.toString();
        }
        if (type instanceof Types.BinaryType) {
            // TODO the client sees the bytearray's tostring ouput instead of seeing actual bytes, needs to be fixed.
            return ((ByteBuffer) value).array();
        }
        if (type instanceof Types.TimestampType) {
            long utcMillis = TimeUnit.MICROSECONDS.toMillis((Long) value);
            Types.TimestampType timestampType = (Types.TimestampType) type;
            if (timestampType.shouldAdjustToUTC()) {
                return packDateTimeWithZone(utcMillis, TimeZoneKey.UTC_KEY);
            }
            return utcMillis;
        }
        if (type instanceof Types.FloatType) {
            return Float.floatToIntBits((Float) value);
        }
        return value;
    }