Casting enums to int values

Sometimes, you can’t pass a string. Enums still come in similar to arrays, so how do we get the int value of an enum?

To cast it, we need to add a (int) in front of the variable amount.

This allows us to grab the numerical value of the enum over the string value. This is great for a level selection system.