This post shows you how to get int value from enum in C#.

For example

public enum License
{
    Full = 2,
    Trial = 4,
    Free = 5
}

To get an int value you can cast the enum, e.g.

int value = (int)License.Trial;