import scala.collection.JavaConversions._
val m = new java.util.LinkedHashMap[String,Int]
val s: scala.collection.mutable.Map[String,Int] = m.asInstanceOf[scala.collection.mutable.Map[String,Int]]
returns the following error
java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to scala.collection.mutable.Map
What is wrong here and how to do this casting? I tried also scala.collection.JavaConverters._ getting the same error.