NewpostWindow: remove obsolete cast.