ensure that the underlying enum type is unsigned