When cos(x) or sin(x) is equal to +1 or -1, I would always recommend drawing a sketch graph of the function to get an idea of where you are (and where the repeat solutions might be). In the case you've quoted, i.e. cos(x) = -1, the result a calculator will respond with is 180 degrees or pi radians. You should be aware that the sin and cos function repeat every 360 degrees (2pi radians), so the immediately neighbouring solutions to that given by the calculator will be 180-360 = -180, or 180+360 = 540. Both of these are outside your target range of 0 to 2pi.
On the CAST diagram, the angle 180 degrees (pi radians) sits on the line that bisects the S and T quadrants, i.e. it is on the negative horizontal axis. Hope this will do in the absence of a diagram.