The scale of the study also made it possible, for the first time, to quantify correlations between diabetes and less common types of cancer. The researchers discovered that people with type 2 diabetes have an increased risk of developing 24 of the types of cancer studied.