How to store entity type in a storage

I am trying to create smth that would let me store the entity type in a storage so I can use a macro to summon in same type of entity, Is there any way for it? In entity data, type is never mentioned
Continue to help post