title: Create an array of Ember.Object
body: <p>I'm sure there is a simple solution to this basic question but frankly I can't find it on Emberjs.com nor on Stackoverflow (maybe i ask to wrong question).</p>
  
  <p>I'm using amChart library to chart data. amChart requires that I pass a "standard" array of objects. So I tried to convert my Ember.object into an array with the toArray() method. But I understand that now that the toArray() method create an array of Ember.objects with the result that amChart cannot find the attributes that I mapped in amChart.</p>
  
  <p>In other words, I need an array which attributes can be access by conventional javascript syntax ( array[1].attribute ) instead of 'object.get('attribute')'.</p>
  
  <p>Or maybe I should take another approach to this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>From the answer below I concluded that I needed to create a new array for amChart:</p>
  
  <pre><code>  chartData: function() {
      var statVals = this.get('chapters.statVals');
      var statArray= statVals.toArray();
      var amCharts = [];
      var chartData = [];
  
      for (var i = 0; i &lt; statArray.length; i++) {
          chartData.push({
              time: statArray[i].get('time'),
              value: statArray[i].get('value'),
          });
      }
      return chartData;
    }.property(),
  </code></pre>
  
  <p>If anyone has a more efficient / better Ember way to approach this, I would gladly modify this solution.</p>