scala> val list = List("foo", "bar")
list: List[java.lang.String] = List(foo, bar)
scala> val dbList = MongoDBList(list:_*)
dbList: com.mongodb.casbah.commons.MongoDBList = [ "foo" , "bar"]
Hint: read the source code first. He can give a lot of answers to your questions and will be useful BTW. It may be hard for the first time, but then it became more and more natural.
source
share