renamed Cast to CastTo