Scala\'s Option class has an orNull method, whose signature is shown below.
orNull
orNull [A1 >: A](implicit ev : <:<[Null, A1]) : A1
Remember that in Scala primitive types and reference types are unified - but only reference types are nullable. The implicit simply allows the compiler to confirm that A1 is a reference type.