Why can't I animate an int or enum?

Is there a way to animate ints or enums? (with mecanim)

I don’t think so. Only floats.

You’d have to animate a float and cast it to an int or enum everywhere you use it.