Oftentimes, the input is an integer that has to be converted to the appropriate enum value. All we have to do is cast the integer value as below:
EnumName e = (EnumName)5;
Visit the DevX Tip Bank