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

toId

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

Create a new Id from the current ObjectId.