This isn't an int, it should be of your enum type.