Jamie Foxx is in talks to play the villain Electro in Sony’s The Amazing Spider-Man sequel.

The 44-year-old actor will star opposite Andrew Garfield, whose debut as the Marvel Comics iconic character – which was directed by (500) Days of Summer helmer Marc Webb – made over $750 million at the box office.

Electro – also known as Max Dillon – was created by Stan Lee and Steve Ditko in Marvel Comics’ The Amazing Spider-Man issue 9, originally released in 1964. He is able to control electricity after being struck by lightning, as hinted in the final scene of the previous film. This will be his first appearance in a Spider-Man film.

Andrew Garfield and Emma Stone are both due to return for the sequel, while the script has been written by Alex Kurtzman and Roberto Orci, with a draft by Jeff Pinkner. The movie is scheduled for release on May 2, 2014, with Webb returning to helm the project, reports Variety.

Even before the news had been officially announced, Foxx dressed as Electro to celebrate Halloween this week. “Costume fits well,” he tweeted.

The actor has built a strong relationship with Sony; he can next be seen in Quentin Tarantino’s new film Django Unchained, which Sony funded, and is starring alongside Channing Tatum in Sony film White House Down, to be released next summer.