More generic way for ContainerType