That is why it is better to keep your ObjectId as ObjectId rather than strings. In addition an ObjectId probably takes less space than it’s string representation.
But your you’re in luck, see the following:
The drawbacks is that each and every string must be converted. Most likely no index can be used because of the conversion. You might need an alternate form of $lookup because you might need to use let and may be enclosed the conversion into an $expr.