I have a simple class structure:
class BaseModel {}
class Performer extends BaseModel {}
And I have a collection of Performer
s:
ArrayList<Performer> list = loadPerformerList();
Why can't I do this?
functionThatNeedsArrayOfBase( (ArrayList<BaseModel>)list );
Or, how can I do that, properly?