There is currently a [bug](https://jira.mongodb.org/browse/SCALA-136), which makes casbah not very type safe. This complicates the problem. Open to suggestion on how to do this.