Try and become a DBA. They are kind of expected to be old (as in 40+) and can rake in the $$$. Although the kind of "coding" you will do will be limited to scripting, SQL, and maybe some ORASQL/APEX.
I'd like to echo to disregard this advice as well.
I work for a company with a lot of young programmers and I recently hired a bright guy in his 30's who decided change career paths.
Do what you love and work on side projects that you will love. It will go a long way in an interview if you can bring us and show off something that you loved working on.
Disregard this advice, do whatever you enjoy the most, there are plenty of good jobs for anyone who is passionate and has good people skills. I know my work is very strict on anti-age discrimination.
Not sure this is the best advice. Most DBA's are not developers, and the line of work isn't the same. OP probably wouldn't make it to his goal, he'd just end up with money.
I work for a company with a lot of young programmers and I recently hired a bright guy in his 30's who decided change career paths.
Do what you love and work on side projects that you will love. It will go a long way in an interview if you can bring us and show off something that you loved working on.