editor-frame: remove unnecessary cast checks