Note that toArray() is declared to return Object[]. Also, the underlying collection has no way of knowing what the concrete types for its contents are.
You should look at the overloaded version of toArray() that takes an array parameter. If you have problems, use the search tool to find previous discussions here or in the beginner forum.
Layne