Error: typedb dependencies not built for the arm64 CPU architecture: mpdecimal was built for x86_64

When trying to install TypeDB via Homebrew, I get the error:

typedb dependencies not built for the arm64 CPU architecture:   
    mpdecimal was built for x86_64

How do I fix this error?

This error can occur if you are on a Mac machine with an ARM chip, but had previously installed TypeDB before a native ARM build was available.

To fix it, simply brew uninstall mpdecimal, then rerun brew install vaticle/tap/typedb.