Fixed redundant copy of container
Added utillity to convert from one container to the other