check editable entry type before casting (win)

fixes issue #895