If the defects are as bad as you state there are not many standards or inspection techniques that are of any value. When a casting is extremely bad, as yours, you best bet is to get the machine manufacturer involved very quickly.
Do mess with the failure surfaces in any way.
You just have to document the failure, photographs by a competent or professional photographer, and point the defects out to the manufacturer and await his comments. Sometime this is hard to do unless someone is hurt or said failure has a potential to hurt someone. The problems come if there is no response from the manufacturer.
I have been involved in several such cases where it turned in to a legal thing very quickly. In every case the owner of the machine received judgement though not as much as I thought was reasonable in most cases.