title: Whats the best way to cast JSON to generic Object[] in angular 2 typescript?
body: <p>Not sure if this works as intended, but I want to convert a blob of json into an array of generic objects (the objects are malleable and can change depending on my URL). Should I use JSON.parse(res.json().data) instead? Thanks.       </p>
  
  <pre><code> return this.http.get(URL)
                         .toPromise()
                         .then(response =&gt; response.json().data as Object[]) 
                         .catch(this.handleError);
            }
  </code></pre>