Use enums as types.