title: DART - can I cast a string to an enum?
body: <p>Is there a way to convert a string to an enum? </p>
  
  <pre><code>enum eCommand{fred, joe, harry}
  
  eCommand theCommand= cast(eCommand, 'joe');??
  </code></pre>
  
  <p>I think I just have to search for the enum (eg loop).</p>
  
  <p>cheers</p>
  
  <p>Steve</p>