docs: public static <T> T toType(Class<T> type, Object value) {
  		T result = toNullableType(type, value);
  		if (result != null)
  			return result;
  
  		TypeCode resultType = toTypeCode(type);
  		if (resultType == TypeCode.String)
  			return null;
  		else if (resultType == TypeCode.Integer)
  			return type.cast((int) 0);
  		else if (resultType == TypeCode.Long)
  			return type.cast((long) 0);
  		else if (resultType == TypeCode.Float)
  			return type.cast((float) 0);
  		else if (resultType == TypeCode.Double)
  			return type.cast((double) 0);
  		else
  			return null;
  	}