Yes, you can use polar coordinates.
What your professor told you to use is the change of variables formula, by setting x = r sin(theta), etc. This defines a transformation from xyz space to r-theta-z space - thus the integral over, say, a cylinder in xyz space is equal to the integral over a...