Enum With Casting C# with Example
using System; namespace CSharpIntermediateConstructsEnum { enum DaysByName { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } class EnumWithCasting { static void Main(string[] args) { Console.WriteLine("4 * 6 = {0}", (int)DaysByName.Thursday * (int)DaysByName.Saturday); } } }