The connection should be no problem. YVR is a small airport (compared to mega-hubs like LHR anyway) with only one terminal building and you don't need to queue for the main immigration line. Baggage does not need to be claimed and re-checked. Obviously if your flight is delayed that is a different issue, but I highly doubt you will take more than 20 minutes gate-to-gate for this connection at YVR.