Specifying output container type based on input container

I see, that makes sense to me. Thanks!