Director Jon Favreau tells the LA Times' Hero Complex blog that Goldstein came on the set during filming and the two hit it off. The director placed the DJ in a party scene at Stark's mansion that apparently leads into one of the title's many action set-pieces. Favreau was initially unsure as to whether or not he should leave the cameo in the film (he'd already decided to dedicate the film to his departed friend), but after speaking to Goldstein's family, he concluded that the scene should stay. "We tried to make it respectful, and for people who know him, they'll get a kick out of it and for people who don't, it will sort of slide by without much notice."
Favreau wasn't the only one touched by the on-set encounter with Goldstein. Robert Downey Jr., an actor who's battled his own personal demons, was also moved. " ... Robert took a real shine to him, as we all did. His energy was amazing, he was such a inspiring guy and there was a lot of depth to him and this positive energy," the filmmaker said.
While Goldstein is certainly missed by those who knew him and loved his work, one last appearance in Iron Man 2, doing what he loved for an audience of literally millions, seems a fitting tribute. Favreau hopes the scene serves as a final bow for a young man gone too soon. "Our heart goes out to his family and friends and we hope what we've done is pleasing to them and to the many, many people who held Adam in high regard."