Rob Prime wrote:But the cast will issue a warning, because the List may be a List<Manager> instead of a List<User>.
Pat, do you need to add objects to your List? If no, then using List<? extends User> is just fine.
Rob Prime wrote:How about using a Class as an extra parameter?