Weak typing in isSameAs() and isNotSameAs()