public static final java.lang.Object[] toArrayType(java.util.Collection<?> c,
java.lang.Class type)
Converts the given collection to an array with the specified component
type. This is functionally different from a collection's toArray()
method - elements of the collection which are not instances of the given
type will not form part of the resulting array.