code: public static <T> List<T> toList(Object array, Class<T> clazz) {
          List<T> list = new ArrayList<>();
          for (Object o : toObjectArray(array)) {
              list.add(Reflection.toType(o, clazz));
          }
          return list;
      }
docs: Convert the given array to list
  
  @param array the array
  @param clazz the type of the list's element
  @return a newly created array list