I have a TwinColSelect in my application. I also have a button to save the entire list in the database. On clicking the save button i invoke the getValue() method which provides me with an
unmodifiableSet of all the values which i selected.
Now, i want to separate all the elements of this set and store it in an arraylist from where i can store it in the database.
Casting this unmodifiable set in toArrayList gives me a ClassCastException.