I only remember seeing a very specific version of this -- IIRC, Green Ronin's Hammer & Helm had a feat that let a dwarven sorcerer use Con instead of Cha. I don't remember seeing any general "swap ability of your choice for spellcasting ability of a class of your choice" feat.