use the correct type for comparison