docs: public static Object toObject(Class<?> clazz, Object value) throws ParseException {
          if (value == null) {
              return null;
          }
          if (clazz == null) {
              return value;
          }
  
          if (java.sql.Date.class.isAssignableFrom(clazz)) {
              return toDate(value);
          }
          if (java.sql.Time.class.isAssignableFrom(clazz)) {
              return toTime(value);
          }
          if (java.sql.Timestamp.class.isAssignableFrom(clazz)) {
              return toTimestamp(value);
          }
          if (java.util.Date.class.isAssignableFrom(clazz)) {
              return toDateTime(value);
          }
  
          return value;
      }