It's been rumored that Foxx was in talks to play the electrifying villain for a few week now, but he all but confirmed it on his Twitter feed yesterday;
Dressed up as Electro for Halloween last night. Costume fits well.
— Jamie Foxx (@iamjamiefoxx) November 1, 2012
I think he's an extraordinary actor, and would love to see what he brings to the role!