title: Enum from string, int, etc
body: <p>Using extension method we can create methods to convert an enum to other datatype like string, int by creating extension methods <code>ToInt()</code>, <code>ToString()</code>, etc for the enum.</p>
  
  <p>I wonder how to implement the other way around, e.g. <code>FromInt(int)</code>, <code>FromString(string)</code>, etc. As far as I know I can't create <code>MyEnum.FromInt()</code> (static) extension method. So what are the possible approaches for this?</p>