camSwitchButton = objects[m_CurrentActiveObject].name;
You are trying to store a
value in a variable which can only hold instances of the
class. The compiler is (correctly) telling you that you can't do that.
As we keep telling you, STOP
guessing, and start reading the documentation or following a decent tutorial. Posting a new question here every time you try to shove the square peg in the round hole and fail is NOT
a sensible way to learn how to write code.