remove obsolete cast