Safe way to cast an Id of marker type T to Id of marker type U, with the same value and value type V.
Safe way to cast an Id of marker type T to Id of marker type U, with the same value and value type V.
This should only be used to convert between Ids with equivalent marker types (i.e. Id[com.foo.User, _] -> Id[org.bar.User, _]).
It should not be used to convert between Ids with unrelated marker types, like User -> Order.
The target marker type
a new Id