title: Unable to pass data to MatTableDataSource
body: <p>I've a service which is returning a objects from an http request.</p>
  
  <p>I'm trying to pass the response as the datasource input but it throws an error <code>Argument of type 'Object' is not assignable to parameter of type 'ReleasenoteData'</code></p>
  
  <p>I need to show the title. Please help</p>
  
  <p>Response will be like below,</p>
  
  <pre><code>{  
     "results":[  
        {  
           "id":"203901655",
           "type":"page",
           "status":"current",
           "title":"Some Title",
           "restrictions":{  
  
           },
  .....
  </code></pre>
  
  <p>Below is my code,</p>
  
  <pre><code>import { Component, OnInit, ViewChild } from '@angular/core';
  import { ReleaseService } from './release.service';
  import {MatPaginator, MatSort, MatTableDataSource} from '@angular/material';
  
  
  @Component({
    selector: 'releases',
    templateUrl: './releases.component.html'
  })
  export class ReleasesComponent implements OnInit {
    title = 'Release notes';
    displayedColumns = ['releasenotes'];
    dataSource: MatTableDataSource&lt;ReleasenoteData&gt;;
    data:any;
  
    @ViewChild(MatPaginator) paginator: MatPaginator;
    @ViewChild(MatSort) sort: MatSort;
  
    constructor ( private releaseNotes: ReleaseService ) {
    }
  
    ngOnInit () {
      const data: ReleasenoteData[] = [];
  
       this.data = this.releaseNotes.getReleaseNotes()
      .subscribe(response =&gt; data.push(response));   
    }
    ngAfterViewInit() {
      this.dataSource.paginator = this.paginator;
      this.dataSource.sort = this.sort;
    }
    applyFilter(filterValue: string) {
      filterValue = filterValue.trim(); // Remove whitespace
      filterValue = filterValue.toLowerCase(); // Datasource defaults to lowercase matches
      this.dataSource.filter = filterValue;
    }
  }
  
  export interface ReleasenoteData {
    id: string;
    title: string;
  }
  </code></pre>
  
  <p>Service:</p>
  
  <pre><code>  getReleaseNotes() {
        return this.http.get(this.url);
    }
  </code></pre>