its funny you should ask that, I have been wondering about the same thing today, silver dollars with african cichlids... I have a 55 gallon with mbuna and im thinking about doing the same thing...
some things to be said about it. Silver dollars will supposedly eat your live plants. Plus they have a lower PH preference in comparison to african cichlids, but if you keep your water PH around 7 then I think both parties will be happy.
one major concern is the african cichlid's aggressive nature, they will tend to test other fish, nibble on them, if they're easy targets then they might just become food for the africans. Id say with a 40 gallon tank, you'd be overstocked if you put 4 SD's, you might be able to get away with it if you have only low lying decorations and have a filtration system rated for something in the 100 gallon tank category.
how big are your cichlids right now?