Made EnumType more usable from a switch statement