Manager ceo = ...;
Manager cto = ...;
Employee cleaner = ...;
List managers = new ArrayList();
managers.add(ceo);
managers.add(cto);
//bug!!
managers.add(cleaner);
//typecast with runtime exception -- too late!
Manager m = (Manager) managers.get(2);