How can an int be cast to an enum in C#?
int
enum
From a string: (Enum.Parse is out of Date, use Enum.TryParse)
enum Importance {} Importance importance; if (Enum.TryParse(value, out importance)) { }