Ash and residues containing metals