The fictional bank in the movie is the Williamsburg Savings Bank. There was a real-life bank by that name that was taken over by HSBC Bank. The interior of the bank was filmed in the actual WSB building in Brooklyn, New York, which has landmark status.
Morgan Freeman and Alan Arkin have never worked together prior to this. However, one actor replaced the other in The Bonfire of the Vanities (1990). Arkin was the original choice and signed on for the judge character when said role was to be played by a Jewish actor. But during production, Director Brian De Palma changed his mind and opted for an African-American actor, and Freeman got the role.
Ths film marks as the second time where Alan Arkin is united with two other Academy Award winning veteran actors in a crime/comedy film, with the previous film being Stand Up Guys (2012), where he appears along Al Pacino and Christopher Walken. Both films were directed by actors who are also directors: Zach Braff directs this one, and Fisher Stevens directed the other film.
Matt Dillon's character, FBI agent Arlen Hamer- who tracks down the bank robbers in the film- shares the last name with the famed Texas Ranger Frank Hamer who is most famous for tracking down and killing bank robbers Bonnie and Clyde.
The trivia items below may give away important plot points.
The speech Joe gives after Willie and Al's kidney transplant that appears, at first, as a funeral speech (revealed to actually be a wedding speech) is a reference to Going in Style (1979), where the characters Willie and Al died of natural causes not long after the robbery.