I have a class called Questions (plural). In this class there is an enum called Question (singular) which looks like this.
Questions
Question
public e
Question question = Question.Role; int value = (int) question;
Will result in value == 2.
value == 2