Turn the target & type field into Enums