Recently, I've been using an enumeration called "tileType" when I load my map from a file. The file contains an array of numbers, so when I load a number I have to explicit type-cast it to the type "tileType" before I can load it into the Tow-Dimensional vector I use to keep my map's values. Is this okay? There's no other way unless I make a very specific switch statement, which would completely break if I changed anything the slightest bit, which wouldn't work.
What do you think? Sorry for the little information, I had to finish up quickly. Cheers !