Connection coefficients between orthogonal polynomials and the canonical sequence