0
kicks
Validate integer value before casting it to an Enum type
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.