code: public static <T,S> T[] toArray(Class<T> type, S[] src) {
  		@SuppressWarnings("unchecked")
  		T[] dest = (T[]) Array.newInstance(type, src.length);
  		System.arraycopy(src, 0, dest, 0, src.length);
  		return dest;
  	}
docs: Convert from an array of one kind to an array of another kind.
  
  @param type
  @param src
  @return