Automatically parse any multibase encoded CID?

Is there a handy function for parsing any multibase-encoded CID? CID.parse requires you to know the base it’s encoded in, but I thought the whole point of standard multibase encodings was that the string itself was self-describing…