Heterozygous familial hypercholesterolemia was associated with increased type 2 diabetes risk, especially among those with obesity and statin use.