Jamie Foxx reportedly up for the villain in ‘The Amazing Spider-Man 2′

Jamie Foxx
Jamie Foxx

Your friendly neighborhood Spider-Man will face off against a "shocking" new adversary in "The Amazing Spider-Man 2." According to Variety, Oscar-winner Jamie Foxx is in early talks to play the villain Electro in Sony's superhero sequel to this summer's reboot of the Marvel Comics' franchise.

While the studio hasn't officially commented on casting, Foxx all but confirmed the role Thursday with a post-Halloween tweet:

Dressed up as Electro for Halloween last night. Costume fits well.
— Jamie Foxx (@iamjamiefoxx) November 1, 2012

The classic Spidey villain Electro, aka Maxwell "Max" Dillon, gained the ability to control electricity after being struck by lightning. Created by Stan Lee and Steve Ditko, he first appeared in "The Amazing Spider-Man #9" in February 1964. Foxx would be a departure from the comic-book character, who has traditionally been depicted as being Caucasian.

[New on Yahoo! Movies: 'Wreck-It Ralph' interview, 'Guardians' featurettes]

There was a hint that Electro would be the villain of the next movie at the end of "The Amazing Spider-Man." In a short scene during the credits, Dr. Curt Conners, aka the Lizard (played by Rhys Ifans), was visited in his jail cell by a mysterious figure obscured in the shadows. The man (played by actor Micheal Masse) asked Connors if he told Peter Parker the truth about his father, and when Connors says no, he disappears with a flash of lightning. This lead some people to assume that figure was supposed to be Electro, but others believe it to be Norman Osborn, who was mentioned throughout the film (and later becomes the villain, Green Goblin).

This would be the first time Electro would appear in a movie, but back in 1991, director James Cameron developed his own "Spider-Man" project that would have featured the character as one of the villains. Cameron's version got caught up in a web of legal issues surrounding the rights, and he eventually left the project, going on to direct "True Lies" and "Titanic." "Spider-Man" wouldn't hit the big screen until the next decade.

Stars Andrew Garfield and Emma Stone are set to reprise their roles as Peter Parker and Gwen Stacy, respectively, with Shailene Woodley ("The Descendants") reportedly in talks to join the cast as a young Mary Jane Watson. "The Amazing Spider-Man 2" is scheduled to swing into theaters on May 2, 2014. Jamie Foxx will next be seen playing the title role in Quentin Tarantino's "Django Unchained," opening this Christmas.

[Related: 'Django' and the other contenders for Best Picture]

UPDATE: In an interview with Collider.com, director Marc Webb confirmed that the villain of the sequel will be Electro. He said, "I think Electro is an incredibly visual, exciting, dangerous villain. So, there's a lot of appealing stuff that's going to happen."

Watch clips from 'The Amazing Spider-Man':

'The Amazing Spider-Man' 4-Minute Preview 'The Amazing Spider-Man' Clip: Police Chase