title: Laravel cast route parameter to Integer
body: <p>I really like the idea of <em>Route Model Binding</em>.</p>
  
  <p>Is there a similar way to cast parameters (which are Strings) to Intergers?</p>
  
  <p>The reason is that I often have the parameters <code>year</code> and <code>month</code>, but I would like to have it as an Integer, because the database seems to handle String and Integers in different ways.</p>