title: Casting double (primitive) to Long ( Wrapper )
body: <p>I have to cast primitive double to Long ( Wrapper) at multiple locations in my code. These are 2 ways I could work with -</p>
  
  <pre><code>linkcatch.setCode(Long.valueOf((long) relatedCd.getDouble(value)));
  </code></pre>
  
  <p>( casting primitive double to primitive long and then Wrapper Long)</p>
  
  <pre><code>linkcatch.setCode(Long.valueOf(String.valueOf(relatedCd.getDouble(value))));
  </code></pre>
  
  <p>( casting double to String to Wrapper Long )</p>
  
  <p>Is there any way to cast from native double to Wrapper long without doing the intermediate casting. </p>
  
  <p>I am concerned because there are numerous locations where i need to do this. Thanks.</p>