Use macro assertion to ensure types are equal.