Returns an array of Objects containing the contents of coll, which can be any Collection. Maps to java.util.Collection.toArray().