Basically the same as this question, but in Delphi Prism:
http://stackoverflow.com/questions/29482/cast-int-to-enum-in-c
I manage to do it from a string:
YourEnum := Enum.Parse(TypeOf(YourEnum), "mystr") as YourEnum
But I tried the following, and get a type mismatch error:
YourEnum := 3 as YourNum
Any ideas what the syntax is for converting int to Enum?