_CommandManagerProxy : tighten cast in `addCommand`