Before angular's new HttpClient was introduced, our objects returned from the http api call could be validated with the instanceof
keyword. they no longer can with the HttpClient Module. I'm trying some simple methods but the type checks return false every time. the desired behavior of:
```
getCow() {
return this.http.get<Cow>(ApiRoute.GET_COW, options)
.map(res => res as Cow)
.toPromise()
.then((c: Cow) => {
console.log(c instanceof Cow); //this is false
})
}
```
would return true. does anyone know of a simple way to new up an instance behind the scenes of the http client?