title: Angular ActivatedRoute, paramMap.get('id') not working as expected
body: <p>so basically i want tho get something from my server using the id of the object.</p>
  
  <p>The id is also in the url:</p>
  
  <pre><code>http://xyz/detail/5ee8cb8398e9a44d0df65455
  </code></pre>
  
  <p>So now im trying the following in xyz.component.ts:</p>
  
  <pre><code>  getEx(): void {
      let id:string = +this.route.snapshot.paramMap.get('id');
      const x = this.exService.getEx(id)
        .subscribe(ex =&gt; this.ex = ex);
    }
  </code></pre>
  
  <p>But this does not work because paramMap.get returns a number and not a string.</p>
  
  <blockquote>
    <p>Type 'number' is not assignable to type 'string'.ts(2322)</p>
  </blockquote>
  
  <p>The last part of my url is obv a string, how can i get this string?</p>
  
  <p>Thanks for your help!</p>