code: private <T> List<T> asList(Object value, Class<T> ofClass) {
          @SuppressWarnings("unchecked")
          T[] values = (T[]) value;
          return Arrays.asList(values);
      }
docs: Returns value as a T List.
  
  @param value array to convert.
  
  @return value as a T List.