My second career is as a software engineer. I did it by leveraging my domain knowledge and going into R&D -- looking at how to design software for journalists to help them be more accurate and faster. For example, how to draw the eye toward areas where mistakes are commonly made and how to handle mundane things automatically. (These kinds of things are important on a news wire, where competition is measured in seconds.) Eventually, it was evident that I knew as much about programming as the programmers and things took off from there. I'm now a Principal at the BBC.
(Edit: I've been paid to program now since 2007, so I'm probably well on my way to having a second 20-year career before I retire.)
So, basically, start where you are, using what you already know. That's more valuable than you think. Most programmers know relatively little about their users, and one who knows can be very valuable.