This does not compile, any suggestion appreciated.
... List list = getList(); return (List) list;
Compil
Your best bet is to create a new List, iterate through the List, add each item to the new list, and return that.
List