title: Why specify route parameter type in web api?
body: <p>I have a web api end point with a route parameter. It works with or without the route parameter type. I just would like to know why specify this in the following code?</p>
  
  <pre><code>[HttpGet]
  [Route("{myId:int}")]
  public HttpResponseMessage GetData([FromUri] int myId)
  {
      //code here
  }
  </code></pre>
  
  <p>This snippet <code>[Route("{myId:int}")]</code>. Why specify the int? There is already a int in this <code>[FromUri] int myId</code>. Wouldn't int for the route be redundant? Is there any reason for this?</p>