Compare against id.