title: convert small long to big Long in java
body: <p><code>long myvariable;</code> can't have value <code>null</code> but <code>Long myBigVariable;</code> can, so I want to convert/cast myvariable to big Long so I can assign it value of null. How can I do that? </p>
  
  <p>I tried <code>myvariable = new Long(null);</code> and <code>myvariable = (Long)(null);</code> they both failed, is there another solution to this ?</p>
  
  <p><strong>I can't change myvariable to type Long, it has to stay long.</strong> </p>