Compare against primitive types