title: How to convert a Array Object to EmberJS Array
body: <p>I've the following class:</p>
  
  <pre class="lang-js prettyprint-override"><code>App.Entity = Ember.Object.extend({
     id: null,
     name : null,
  });
  </code></pre>
  
  <p>And I've the following controller :</p>
  
  <pre class="lang-js prettyprint-override"><code>App.HomeController = Ember.ObjectController.extend({
    entities: null,
  
    init:function(){
        var myArray = [];
        var a = App.Entity.create();
            a.set('id',1);
            a.set('name','A');
        var b = App.Entity.create();
            b.set('id'2);
            b.set('name','B');
  
       //and I add another entities dynamycally
  
       myArray.push(a);
       myArray.push(b);
  
       console.log( 'isArray: '+ Ember.isArray(myArray) ); //I get true
       this.set('entities', myArray );
    }
  });
  </code></pre>
  
  <p>The problem is when I try to iterate and render the content over view:</p>
  
  <pre class="lang-html prettyprint-override"><code> &lt;script type="text/x-handlebars" data-template-name="home" &gt;
    {{#if entities}}
       {{#each entities }}
           {{this.value}}
       {{/each}}
    {{/if}}   
    {{outlet}}
   &lt;/script&gt;
  </code></pre>
  
  <p>I get the following mistake:</p>
  
  <pre class="lang-js prettyprint-override"><code>Assertion Failed: The value that #each loops over must be an Array. You passed     &lt;App.Entity:ember425&gt;,&lt;App.Entity:ember426&gt;,...
  </code></pre>
  
  <p>How to fix it? </p>