title: How to get actual array from ember model?
body: <p>I have a model with a <code>hasMany</code> relationship:</p>
  
  <pre><code>var Bus = DS.Model.extend({
    model: DS.attr('string'),
    passengers: DS.hasMany('passenger', {async: true})
  });
  </code></pre>
  
  <p>This seems to work, in that I am able to iterate through the passengers in my template.</p>
  
  <p>Now I want to have an action in my controller that will do something with the passengers. It involves some business logic, and I'll need to iterate through the list of passengers.</p>
  
  <p>My problem is that when I get the passengers from the model in the controller, it is not an array, it is some sort of object. How do I get an array from this object?</p>
  
  <p>Here's what I have tried:</p>
  
  <pre><code>export default Ember.ObjectController.extend({
    actions: {
      start: function() {
        var bus = this.get('model');
        var passengers = model.get('passengers');
        passengers.then(function(passengerArray) {
          var stuff = passengerArray.get('content');
          console.log('The thing that I wish were an array of passengers',passengerArray);
          console.log('The type of that thing',typeof(passengerArray));
        });
      }
    }
  });
  </code></pre>
  
  <p>It gives me the type <code>object</code>, and it is clearly something wrapped in emberness in a way that is inscrutable to me.</p>