/// <summary> /// Converts the value of the specified enumeration to an int. /// </summary> /// <typeparam name="T">An enumeration type</typeparam> /// <param name="value">An enumeration value</param> /// <returns>A 32-bit signed integer that is cast equivalent to the enumeration value</returns> public static int ToInt32 <T>(T value) where T : struct, E => EnumCompiledCache <T> .ToInt32(value);