Check out example codes for "convert int to enum c#". It will help you in understanding the concepts better.

Code Example 1

if (Enum.IsDefined(typeof(YourEnum), yourInt))
{
    return (YourEnum) yourInt;
}

  OR:

if (Enum.IsDefined(typeof(YourEnum), yourInt))
{
    return (YourEnum) Enum.ToObject(typeof(YourEnum), yourInt);
}

Code Example 2

YourEnum foo = (YourEnum)yourInt;

Learn ReactJs, React Native from akashmittal.com