presto-spi/src/main/java/io/prestosql/spi/predicate/Primitives.java/Primitives/wrap
class Primitives:    public static <T> Class<T> wrap(Class<T> type)
    {
        requireNonNull(type);

        // cast is safe: long.class and Long.class are both of type Class<Long>
        @SuppressWarnings("unchecked")
        Class<T> wrapped = (Class<T>) PRIMITIVE_TO_WRAPPER_TYPE.get(type);
        return (wrapped == null) ? type : wrapped;
    }