Well, I have a class Customer (no base class).
I need to cast from LinkedList to List. Is there any clean way to do this?
Just so you know, I need to cast it
I did this function for that, ugly but it works
public static Collection cast(Collection super T> collection, Class clazz){ return (Collection)collection; }