Start big, then step down
After the cashier knows the change, they hand it back in as few pieces as they can. Begin with the largest bill or coin that is not more than what is left. Use as many of it as fit, then step down to the next one.
The ladder goes: $100, $50, $20, $10, $5, toonie ($2), loonie ($1), quarter (25¢), dime (10¢), nickel (5¢). Canada does have a 50¢ coin, but stores hardly ever hand one out, so we leave it off the ladder.
Paying a bit more on purpose
Sometimes it is smart to hand over more than you need, so the change comes back neat.
Say your cash total is $57.70. Pay with three $20 bills ($60) and the change is $2.30: a toonie, a quarter and a nickel. But add 2 quarters and 2 dimes, so you hand over $60.70, and the change is exactly $3.00: a toonie and a loonie. And your pocket has fewer coins too.