title: Scala Option(null) expected as None but I got Some(0)
body: <pre class="lang-scala prettyprint-override"><code>val i: java.lang.Integer = null
  val o: Option[Int] = Option(i) // This yields Some(0)
  </code></pre>
  
  <p>What is the safe way to convert <code>null: java.lang.Integer</code> to Scala <code>Option[Int]</code>?</p>