CompositeContainerAdapter castAs support