There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message. Therefore if the value comes from an external source (for example, from user input) check it against an enum before casting. The easiest way to do it is to use Enum.IsDefined method:
int submitedValue = 123;
if (Enum.IsDefined(typeof(MyEnum), submitedValue))
//do casting here
Note: because Enum.IsDefined loads reflection it should be used with caution because of its performance penalty.
via M. Parreira