title: How to get Date object from json Response in typescript
body: <p>Here is my json:</p>
  
  <pre><code>{
    "data": [
      {
        "comment": "3541",
        "datetime": "2016-01-01"
      }
    ]
  }
  </code></pre>
  
  <p>Here is model:</p>
  
  <pre><code>export class Job {
      constructor(comment:string, datetime:Date) {
          this.comment = comment;
          this.datetime = datetime;
      }
  
      comment:string;
      datetime:Date;
  }
  </code></pre>
  
  <p>Query:</p>
  
  <pre><code>getJobs() {
          return this._http.get(jobsUrl)
              .map((response:Response) =&gt; &lt;Job[]&gt;response.json().data)
  }
  </code></pre>
  
  <p>Problem is that after casting to <code>Job[]</code> i expect <code>datetime</code>property to be <code>Date</code> but it is string. Shouldn't it cast to Date object? What am i missing here?</p>