title: Grails GSP <g:set> tag set as integer?
body: <p>Using Grails' GSP <code>&lt;g:set&gt;</code> tag, is it possible to specify the type of the variable? I want to declare an integer variable, but <code>&lt;g:set&gt;</code> always declares a sting. For example:</p>
  
  <pre><code>&lt;g:set var="x" value="100"/&gt;
  ${x.getClass()}
  ${x+23}
  </code></pre>
  
  <p>results in</p>
  
  <pre><code>class java.lang.String
  10023
  </code></pre>
  
  <p>I'd like to declare <code>x</code> as an integer. I noticed that using the JSP tag <code>&lt;% int x=100; %&gt;</code> results in:</p>
  
  <pre><code>class java.lang.Integer
  123
  </code></pre>
  
  <p>Is there a way to do this the Grails/GSP way?</p>