Ensure varying type matches.