how to use enum as int in c# code example Example: get enum value c# int something = (int) Question.Role;