title: Double Array to Object Array?
body: <p>I have following array:</p>
  
  <pre><code>double[] Series = new double[] { 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 }
  </code></pre>
  
  <p>Series debugging view :</p>
  
  <pre><code>&gt; Series
  --&gt; [0]
  --&gt; [1]
  --&gt; ...
  --&gt; [10]
  --&gt; [11]
  </code></pre>
  
  <p>When I write following:</p>
  
  <pre><code>object[] object_array = new object[] { Series }
  </code></pre>
  
  <p>object_array debugging view : (more than one level)</p>
  
  <pre><code>&gt; object_array
  --&gt; [0]
  ----&gt; [0]
  ----&gt; [1]
  ----&gt; ...
  ----&gt; [10]
  ----&gt; [11]
  </code></pre>
  
  <p>I write following to prevent new level:</p>
  
  <pre><code>object[] object_array = new object[Series.Length];
  for (int i = 0; i &lt; Series.Length; i++)
  {
      object_array[i] = Series[i];
  }
  </code></pre>
  
  <p>This is the one of the other solutions. But I think, there may be a better way to do this. Is there a problem for me to use above loop? Or different way?</p>
  
  <p>(I use highcharts. If I give array that contains more than one level, it does not work.)</p>
  
  <p>Thanks.</p>