title: Java: from int to short and from float to short
body: <p>I know it can't be done,
  but since I get those values from somewhere else (...)
  and supposing that:</p>
  
  <ul>
  <li>the int I get is: > 0 and &lt; Short.Max_VALUE;</li>
  <li>the float I get is: > 0 and &lt; Short.Max_VALUE;</li>
  </ul>
  
  <p>How could I perform such a conversion?</p>
  
  <p>Thanks!</p>