How to properly cast object to generic enum?

Your question is the new hotness for some reason. :firecracker: