this isn't a good choice for an example since $\sum \dfrac 1 {n^2}$ converges

$\left|\cos(x)\right| \leq 1$ so clearly $\sum \dfrac {\cos(x)}{n^2}$ converges

You don't have to invoke the fact that it's an alternating series to get convergence. This series converges absolutely.