title: Passing int to spring property
body: <p>I want to pass <strong>int</strong> instead of <strong>string</strong> which is default in spring <strong>PropertyPlaceholderConfigurer</strong>.</p>
  
  <pre><code>&lt;property name="mailServerPort" value="${mail.port}" /&gt;
  </code></pre>
  
  <p>This give me error because mailServerPort is int type and ${mail.port} is string type.</p>
  
  <p>How can I convert ${mail.port} to int?</p>