Removing the remainder function from Taylor expansions.

When trying to set up a question such as
it is natural to use the maple function taylor(expression, x=a, n) to generate the answer, eg in this example, one would use:
y := taylor((5+6*x)*exp(x), x=0, 3).
However calling this function does not return a polynomial, it instead returns the polynomial we want for the grading code with the addition of the remainder function, simply being O(x^3).
So the line above would return:
(5+11*x+(17/2)*x^2+O(x^3)
To get rid of the O(x^3) to make grading easier, one needs to convert the output to a polynomial using:
z := convert(y, polynom)
which then returns:
5+11*x+(17/2)*x^2
This can then be easily marked in a maple graded question.