Use equals not be to deal with types