Retrieve random enum name from int in switch

And use enum name in case