give in to type system and simply check for equality

guards against #815