title: convert Integer to Long in Velocity
body: <p>It prints the relevant class as <code>java.lang.Long</code> or <code>java.lang.String</code> but it is not converting.
  Please help to solve this issue.</p>
  
  <p>Is there some other easy way to do this.?</p>
  
  <p>set in Java file</p>
  
  <pre><code>resolver.setAttirbutes("Long",Long.class);
  resolver.setAttirbutes("String",String.class);
  </code></pre>
  
  <p>convert in VM file</p>
  
  <pre><code>$Long.parseLong($String.valueOf(2))
  </code></pre>