toId

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

Create a new Id from the current ObjectId.