How can an int be cast to an enum in C#?
int
enum
Take the following example:
int one = 1; MyEnum e = (MyEnum)one;