I am kind of new to scala and have not done any programming in java or object oriented programming languages.
I have been using this case class to write to the database
case class User(id: new ObjectId, name: String)
What is the best way to let this accept either an ObjectId String, or an ObjectId? Ideally I would like to just have the case class implicitly convert a string to an ObjectId.