I would like a command that could change the "type" of an entity to either living, undead, aquatic, or arthropod.
The reason I want this is that you could make any "undead" entity be affected by potions in the same way that "living" entities are affected. It would be able to make any "living" entity effected by bane of arthropods, impaling, or smite by changing the "living" entity to "arthropod", "aquatic", or "undead". It could also make entities that normally do not burn in the daylight, burn in the daylight by turning them to "undead".
This would be the format for the command:
/type <player/entity/selector> <living/undead/aquatic/arthropod>