Iron Man (2008 film) in casting Downey, but would not take no for an answer, saying, "It was my job as a director to show that it was the best choice creatively ... everybody knew he was talented [and] certainly by studying the Iron Man role and developing that script I realized that the character seemed to line-up with Robert in all the good and bad ways. Downey earned $500,000 for the role. While preparing for filming, Favreau and Downey were given a tour of SpaceX by Elon Musk. Downey said, "Elon was someone Tony probably hung out with and partied with, or more
Robert Downey Jr. well. In July 2001, Downey pleaded no contest to the Palm Springs charges, avoiding jail time. Instead, he was sent into drug rehabilitation and received three years of probation, benefiting from the California Proposition 36, which had been passed the year before with the aim of helping nonviolent drug offenders overcome their addictions instead of sending them to jail. The book "Conversations with Woody Allen" reports that director Woody Allen wanted to cast Downey and Winona Ryder in his film "Melinda and Melinda" in 2005, but was unable to do so, because he could not get insurance on them, stating,