c# enum int toenum code example Example: c# enum to int Just cast the enum, e.g. int something = (int) WeaponType.BFG;