enum Values { A = 1, B = 5, C = 3, D = 42 } public class EnumerationsConversions { public static void Main() { Values v = (Values) 2; int ival = (int) v; } }