Can't convert List<KeyValuePair<...,...>> to IEnumerable<object>?
<p>Getting an InvalidCastException when trying something like this :</p>

<pre><code>IEnumerable&lt;object&gt; test = (IEnumerable&lt;object&gt;)new List&lt;KeyValuePair&lt;string, int&gt;&gt;();
</code></pre>

<p>However, this did work:</p>

<pre><code>IEnumerable&lt;object&gt; test = (IEnumerable&lt;object&gt;)new List&lt;Dictionary&lt;string, int&gt;&gt;();
</code></pre>

<p>So what's the big difference? Why can a KeyValuePair not be converted to an object?</p>

<p><strong>Update</strong>: I should probably point out that this did work:</p>

<pre><code>object test = (object)KeyValuePair&lt;string,string&gt;;
</code></pre>
