The observation deck is a great way to spend some time, but plan on going through security again before you can go to your connecting flight.
Also, it might be important to take note of immigration procedures, depending on where you are arriving from before connecting to YYZ.