Polymorphic container