code: public <E, T extends Collection<E>> T asCollection(@NonNull Class<?> collectionClass, @NonNull Class<E> genericClass) {
        T rval = Convert.convert(toConvert, collectionClass, genericClass);
        if (rval == null) {
           return Collect.create(Cast.as(collectionClass));
        }
        return rval;
     }
docs: Converts the object to a collection
  
  @param <E>             the type parameter
  @param <T>             the type parameter
  @param collectionClass The collection to convert to
  @param genericClass    The class of the item in the collection
  @return The object as a collection