This does not compile, any suggestion appreciated.
... List list = getList(); return (List) list;
Compil
That's because although a Customer is an Object, a List of Customers is not a List of Objects. If it was, then you could put any object in a list of Customers.