How do I cast this to an Int and not Some(Int)
val a: Option[Any] = Some(1)
I tried toInt and it gave an error value toInt is not a member of Option[Any]
How do I cast this to an Int and not Some(Int)
val a: Option[Any] = Some(1)
I tried toInt and it gave an error value toInt is not a member of Option[Any]