[CLEANUP] Change Enumeration::cast return doc to self