Remove types in pointer comparison