code: @SuppressWarnings("unchecked")
      public static <T> T asType(Object[] ary, Class<T> clazz) {
          if (clazz == List.class) {
              return (T) new ArrayList(Arrays.asList(ary));
          }
          if (clazz == Set.class) {
              return (T) new HashSet(Arrays.asList(ary));
          }
          if (clazz == SortedSet.class) {
              return (T) new TreeSet(Arrays.asList(ary));
          }
  
          return asType((Object) ary, clazz);
      }
docs: Converts the given array to either a List, Set, or
  SortedSet.  If the given class is something else, the
  call is deferred to {@link #asType(Object,Class)}.
  
  @param ary   an array
  @param clazz the desired class
  @return the object resulting from this type conversion
  @see #asType(java.lang.Object, java.lang.Class)
  @since 1.5.1