int in enum wandeln

public enum MyType
{
    Undef = 0,
    Type1 = 10,
    Type2 = 20,
    Type3 = 64
}

int a = 20;

// eType == Type2 (int a == 20)
MyType _eType = (MyType)Enum.ToObject(typeof(MyType), a);