hash conversion to specified collection