Adjust assertion statement to allow more types of id than int.