kmongo / org.litote.kmongo.id / org.bson.types.ObjectId

Extensions for org.bson.types.ObjectId

toId

Create a new Id from the current ObjectId.

fun <T> ObjectId.toId(): Id<T>