title: Grails - TypeMismatchException id passed as a string
body: <p>I am having UI problems linking to a class entity using the 
  
  <pre><code>        &lt;td&gt;&lt;g:link controller="publishedShr" action="show" 
              id="${videoShrInstance.publId.id}"&gt;
              ${fieldValue(bean: videoShrInstance, field: "publId")}&lt;/g:link&gt;&lt;/td&gt;        
  </code></pre>
  
  <p>And here it the resultant url:</p>
  
  <pre><code>http://localhost:9000/HomeVu1/publishedShr/show/%5B35%5D
  </code></pre>
  
  <p>Which should be of the form: </p>
  
  <pre><code>http://localhost:9000/HomeVu1/publishedShr/show/35
  </code></pre>
  
  <p>On the same web page I have a similar link to a child entity that works:</p>
  
  <pre><code>    &lt;td&gt;&lt;g:link controller = "videoShr" action="show" id="${publishedShrInstance.videoId.id}"&gt;
      ${fieldValue(bean: publishedShrInstance, field: "videoId")}&lt;/g:link&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I am using 
  
  <p>I have cleaned the project as this link did originally work - Can I cast it to Long in the 
  
  <p>-mike</p>