Unable ( Or Able) to List<int>.Cast<Enum>()?
<p>Try the following code</p>

<pre><code>public enum Color
{
 Blue=1,
 Red=2, 
  Green=3 
}

public List&lt;Color&gt; ConvertColorEnum()
{
  var intColor = new List&lt;int&gt;(){1,2,3};
  return intColor.Cast&lt;Color&gt;().ToList();
}
</code></pre>

<p>Do you think the <code>ConvertColorEnum()</code> will return a list of color, i.e., <code>List&lt;Color&gt;(){Color.Blue, Color.Red, Color.Green}</code>?</p>

<p>I tested this on 2 machines, one with .net 3.5 ( mscorlib version 2.0.50727.1433), another with .net 3.5 SP1 ( mscorlib version 2.0.50727.3082). The results were different-- the .net 3.5 threw an <code>InvalidCastException</code> because couldn't convert integer to enum, whereas .net 3.5 SP1 could run successfully, with correct results returned.</p>

<p>Anyone would like to try this on his/her machine and report the result or explain why this is so?</p>
