namespace MyProject { public enum DatabaseType { MSSQL, Oracle } class MyClass { public int iDataBaseType = (int)DatabaseType.MSSQL; } }You always have to cast the enum to the underlaying type (default is int if not specified). I don't know why they implemented it this way but oh well. My latest enum woe is that I use a guid as an enum type; a guid is a value type and is just a big number. I still like enums.