title: Play 2.X ScalaRouting Boolean Parameter
body: <p>How can I use boolean in route definition?</p>
  
  <p>If I use this way,</p>
  
  <pre><code>GET     /user/:userName   controllers.AppController.user(userName, registerDone:Boolean?=0)
  </code></pre>
  
  <p>it throws this error:</p>
  
  <blockquote>
  <pre><code>[error]  found   : Int(0)
  [error]  required: Boolean
  </code></pre>
  </blockquote>
  
  <p>If I use this way,</p>
  
  <pre><code>GET     /user/:userName   controllers.AppController.user(userName, registerDone:Boolean?=false)
  </code></pre>
  
  <p>it throws this error:</p>
  
  <blockquote>
    <p>bad request at: /user/aajjblack?registerDone=true, Cannot parse
    parameter registerDone as Boolean: should be 0 or 1</p>
  </blockquote>
  
  <p>Controller:</p>
  
  <pre><code>public static Result user(final String userName, Boolean registerDone) {
  }
  </code></pre>