With age discrimination still an unfortunate reality, you do not want to wait too long to make a switch, but your 40s are a good time to assess your situation and, if you choose, to make a change that will get you into the place you want to be, both in terms of job fulfillment and financial success.