I solved this problem, but I'm not sure my answer is correct as it seems very complex (compared to the polar equation). Did I make some mistake along the way or is it the right solution?
$$r=\theta$$ $$\sqrt{x^2+y^2}=\arctan\bigg(\frac{y}{x}\bigg) \tag{$r^2=x^2+y^2 \to r=\sqrt{x^2+y^2}$}$$ $$x^2+y^2 = \bigg(\arctan\bigg(\frac{y}{x}\bigg)\bigg)^2$$
$\quad r^2 = \theta^2\quad$ expressed as a Cartesian equation is
$$x^2+y^2 = \bigg(\arctan\left(\frac{y}{x}\right)\bigg)^2$$
But better yet, for $r = \theta$, use: $$\sqrt{x^2+y^2} = \arctan\left(\frac{y}{x}\right) + k\pi\tag{see alex's explanation}$$
ADDED: This is the graph I get (from Wolfram) for the function: using a polar plot.