The easiest way is to use inheritance. The best way is to use object composition.

How will you decide which object you want to cast it into? Why does your "List object" not contain a parameter....