Use syntactic sugar for enums

There is no need to specify enum type.