code: public static <T> List<T> toList(T... objects) {
  		List<T> list = new Vector<>();
  		for (T object : objects) {
  			list.add(object);
  		}
  		return list;
  	}
docs: To list.
  
  @param         <T> the generic type
  @param objects the objects
  @return the list