clean Tyxml_cast