docs: public static Object convert(final String value, final Class<?> type) {
  
          final Object result;
  
          if (value == null) {
              result = null;
          } else if (type.isPrimitive()) {
              result = toPrimitive(value, type);
          } else if (OBJECT_TO_PRIMITIVE_TYPE_MAP.containsKey(type)) {
              result = valueOf(value, type);
          } else {
              result = value;
          }
          return result;
      }