Check out example codes for "C# .net core convert int to enum". 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);
}

Learn ReactJs, React Native from akashmittal.com