For example, I have a class:

```
export class SomeClass {
 id: number;
 name: string;
}

```

I receive JSON from server than looks like this

```
[{"Id":1,"Name":"typicalname"},{"Id":2,"Name":"somename"},{"Id":3,"Name":"blablabla"},{"Id":4,"Name":"lol"},{"Id":5,"Name":"lil"},{"Id":6,"Name":"lal"}]

```

How do I cast a JSON object to a typescript class when properties doesn't match?
That's how I do it wright now, and it's not working.

```
getSomeClass() {
  return this.http.get(this.someClassUrl)
    .map(response => <SomeClass[]>response.json())
    .catch(this.handleError);
}

```