title: Add Integer[] to list<Object>
body: <p>Question: Why can't i add an <code>Array of Integers</code> to a <code>List&lt;Object&gt;</code>?</p>
  
  <p>following the posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/1793357/do-value-types-integer-decimal-boolean-etc-inherit-from-object">do-value-types-integer-decimal-boolean-etc-inherit-from-object</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1682231/how-do-valuetypes-derive-from-object-referencetype-and-still-be-valuetypes">how-do-valuetypes-derive-from-object-referencetype-and-still-be-valuetypes</a></p>
  
  <p>i'm understanding the following structure:</p>
  
  <pre><code>Integer =&gt; Inherits =&gt; System.ValueType =&gt; Inherits =&gt; System.Object
  </code></pre>
  
  <p>Then why am i getting an error when i do the following:</p>
  
  <pre><code> List&lt;object&gt; myObjects = new List&lt;object&gt;();
   myObjects.AddRange(IntegerArray.ToList());
  </code></pre>
  
  <p><strong>Given Error:</strong></p>
  
  <pre><code>cannot convert from 'System.Collections.Generic.List&lt;int&gt;' to
  'System.Collections.Generic.IEnumerable&lt;object&gt;
  </code></pre>
  
  <p>This one works though:</p>
  
  <pre><code> List&lt;int&gt; myObjects = new List&lt;int&gt;();
   myObjects.AddRange(IntegerArray.ToList());
  </code></pre>