“Going in Style,” the 1979 comedy starring George Burns, Art Carney and Lee Strasberg, is treated to a genial, warmhearted upgrade in a remake by director Zach Braff that features Michael Caine, Morgan Freeman and Alan Arkin in roles they slip into like well-worn sweaters.

Written by Ted Melfi, the filmmaker behind the wildly successful “Hidden Figures,” this iteration of “Going in Style” still revolves around three elderly men who pull a bank heist in an attempt, not only to bring in some money, but to stave off the bitter edge of old age. But Melfi has given the story more cheery uplift, while placing it squarely within the grimmest realities of 21st-century life.

As the film opens, Caine’s character, Joe, is battling with his New York bank, which has recently tripled his mortgage payment due to a teaser-rate loophole. Later, he and best buddies Willie (Freeman) and Albert (Arkin) discover that the steel company they worked for is moving overseas and dissolving their pensions.

Today, that act of corporate skulduggery might be solved with one magical-thinking presidential tweet (one of the movie’s executive producers, as it happens, is Treasury Secretary Steven Mnuchin). But within the fanciful recent past of “Going in Style,” it means that three smart, well-seasoned gentlemen will decide to plot their revenge, even while hiding in plain sight as the doddering oldsters everyone keeps taking them for.

Continually patronized, underestimated or plainly ignored, Joe, Willie and Albert resemble the heroes of last year’s similarly themed “Hell or High Water” as they seek retribution for their financial woes and social insignificance. Like that movie, “Going in Style” involves banter with a colorful waitress — played by the wonderful character actress Siobhan Fallon Hogan — but because this is an escapist comedy, the gentlemen will also cross paths with a sexy septuagenarian jazz fan (Ann-Margret), a cowardly bank executive (Josh Pais), a skeptical law enforcement officer (Matt Dillon) and an incredulous supermarket manager (Kenan Thompson).