Changed the equality operator to identity. #1246

Changed the equality operator to identity.