The new Angular HttpClient API
Ciro Nunes

I don’t know about angular 4, but I know with angular 5, even though HttpClient calls with a type look like the type, they really are not. For example, if you defined a type as a number, it still comes in as a string.

typescriptObject.numberField === 1 will return false, because numberField comes in as ‘1’ from json.