title: type casting required on function calls taking short datatype variable as a parameter
body: <p>Whenever I use byte or short data type as a method parameter, on method calls, I am required to explicitly cast the values I pass to those methods. </p>
  
  <p>To better explain:</p>
  
  <pre class="lang-java prettyprint-override"><code>void foo(short x)
  {}
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>void main() {foo((short)32);}
  </code></pre>
  
  <p><strong>If I dont use short here then warning is generated.</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>method foo in class px cannot be applied to given types
  required: byte
  found: int
  </code></pre>
  
  <p>How can I get it better?</p>