I found this is the work around with the problem. selectedAsset=(SelectedAsset)selectedAssetsCollection.toArray(selectedAsset);
But why simple toArray() method is not working. contradictory of toArray(Object); [ September 08, 2005: Message edited by: Jignesh Patel ]
Joined: Dec 06, 2001
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.