c# get the value of an enum code example Example: get enum value c# int something = (int) Question.Role;