The old ritual of exchanging a wad of cash before flying is mostly obsolete; the cheapest reliable strategy in most destinations is a fee-free debit or travel card used at ATMs and terminals abroad. Cards designed for travel, with no foreign transaction fees and fair exchange rates, beat almost every physical exchange option.
What still deserves cash planning: arrive with a small amount of local currency or exchange a modest sum at the airport, accepting the poor airport rate as the price of convenience for the taxi and first meal, then withdraw larger amounts from bank-affiliated ATMs in the city, where rates are set by the network rather than a tourist bureau.
Check your daily ATM withdrawal limit and raise it temporarily if needed, since per-withdrawal ATM fees make fewer, larger withdrawals cheaper. Notify your bank of travel through its app if it asks for that, and note some economies remain heavily cash-based while others are nearly cashless, so ask recent travelers what the ground truth is.