Generic class containing theasJava converter method
asJava
Converts a Scala collection to the corresponding Java collection