convert type `Any` to type `Map` in scala

Viewed 8899

How can I convert type Any to type Map in scala?

Right now I have this val:

poop: scala.collection.immutable.Map[String,Any] = Map(scenario0 -> Map(street -> Bulevard, city -> Helsinki), scenario1 -> Map(street -> Bulevard, city -> Helsinki))

I am trying to extract the Map objects associated with scenario0 and scenario1 and pass these maps into a function.

2 Answers
Related