Ancient metallic Dragons have change shape, which doesn't care about the spell casting trait, only class abilities, and since all creatures in the monster manual are in essence, not creatures advancing in classes, you should be able to use the spellcasting from the archmage monster.