Problem: Need to implement interface from 3rd party Java library in Scala
...
Collection<?> getItemPropertyIds()
...
My solution is to use
...<here goes Iterable>.asInstanceOf[java.util.Collection[_]]
val props:Map[Object,Property] = ...
override def getItemPropertyIds()=props.keys.asInstanceOf[java.util.Collection[_]]
Is there better solution? Maybe with Predef's implicits?