public static Class<?> toObjectType(Class<?> javaClass) {
        if (boolean.class == javaClass) {
            javaClass = Boolean.class;
        } else if (byte.class == javaClass) {
            javaClass = Byte.class;
        } else if (int.class == javaClass) {
            javaClass = Integer.class;
        } else if (long.class == javaClass) {
            javaClass = Long.class;
        } else if (short.class == javaClass || char.class == javaClass || Character.class == javaClass) {
            javaClass = Short.class;
        } else if (float.class == javaClass) {
            javaClass = Float.class;
        } else if (double.class == javaClass) {
            javaClass = Double.class;
        } else if (javaClass == null) {
            javaClass = Object.class;
        }

        return javaClass;
    }
Converts given Java class to wrapper object(e.g. {@code int.class} to
{@code Integer.class}) if applicable.

@param javaClass Java class
@return wrapper object
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseDataType.java