There is Cast Iron and there is Cast Iron. And there is also Cast Iron
The metal used for Gramma's iron skillets, and good modern Lodge cast cook ware is Gray Iron. Gray iron is brittle, great for pans & old engine blocks but would not survive long at all as a cock or a hammer on a lock.
Another type of cast iron is Malleable Iron, been used for about two centuries or more now. General Motors' Central Foundry used to make & anneal great quantities of Malleable Iron automotive parts.
In the 19th century malleable iron was used for things like musket nose caps and pepperbox frames. Among "real" revolvers only Remington and that French pinfire used malleable iron frames. the Gov't objected to Remington's malleable iron frames but there is no record they did anything about it. I have owned one .36 cal Navy conversion that was obviously cast, and seen others. Oh, yes, and the "steel" triggerguards &c used on London Colts were malleable iron.
Personally I would not use it for a hammer, but it is cheap. Dixie used to sell malleable iron cocks, both percussion & flint
The last type of iron is called White Cast Iron, because when broken the fracture is all bright and crystalline looking. This stuff is so hard it is a problem to even grind it. Normally it is cast, then annealed to turn it into malleable iron.