Case statement error

The warning message is simply telling you that it's wrong to consider an enum and an int as equivalent.