Actor Vivek Oberoi, who has dubbed for Jamie Foxx`s character of Electro in the Hindi version of Hollywood film `The Amazing Spider-Man 2`, says he agreed to this as he is a huge fan of the Oscar-winning actor.