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;
	}
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;
	}
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 ; }
Convert from an array of one kind to an array of another kind.

@param type
@param src
@return
Convert from an array of one kind to an array of another kind .