avoid implicit conversions between enums and int (MSVC complains)