Casting object to enum class

So I have:
enum AClass { double, int, string } 

And I wanna case my object to that class:
obj a = 0;
(AClass)a;

There is a reflector to determine what variable type it is but it kinda does this on runtime/compile.

I wanna know if there is a way to cast this without wrapping it
Was this page helpful?