title: Conversion from built in types to Custom Classes
body: <p>I have a custom class that acts as an int called Integer, I would like to tell compiler how to convert certain types to Integer automatically so that I can avoid typing same thing over and over again,</p>
  
  <pre><code>someCall(Integer(1), Integer(2));
  </code></pre>
  
  <p>would become</p>
  
  <pre><code>someCall(1,2);
  </code></pre>
  
  <p>I've googled but all I could find is to do the oposite, casting Integer to int I would like to accomplish the opposite.</p>