title: How do I convert an integer to an enumerated type?
body: <p>I know how to convert an enumerated type to an integer.</p>
  
  <pre><code>type
    TMyType = (mtFirst, mtSecond, mtThird); 
  
  var 
    ordValue:integer;
    enumValue:TMyType;
  ...
  ordValue:= Ord(mtSecond); // result is 1
  </code></pre>
  
  <p>But how do I do the inverse operation and convert an integer to an enumerated type?</p>