title: Cannot convert string to Enum type I created
body: <p>I have an enum:</p>
  
  <pre><code>public enum Color
  {
      Red,
      Blue,
      Green,
  }
  </code></pre>
  
  <p>Now if I read those colors as literal strings from an XML file, how can I convert it to the enum type Color. </p>
  
  <pre><code>class TestClass
  {
      public Color testColor = Color.Red;
  }
  </code></pre>
  
  <p>Now when setting that attribute by using a literal string like so, I get a very harsh warning from the compiler. :D Can't convert from string to Color.</p>
  
  <p>Any help?</p>
  
  <pre><code>TestClass.testColor = collectionofstrings[23].ConvertToColor?????;
  </code></pre>