say I have this:
enum ABC {a,b,c}

and I have int val =2.... how can I convert the integer value to the correct enum member in ABC?
I tried (ABC) val but it didnt work I dunno what I'm doing, someone help me