backport fake assert_is
cosmit
Merge pull request #1131 from dengemann/fix_as_is

FIX: backport fake assert_is