toArray

open fun <T> toArray(collection: Collection<T>, clazz: Class<T>): Array<T>