Studies have found that low levels of magnesium increases the chance that you will develop type 2 diabetes, but a large study shows that this association is modified by genetic variations in magnesium-related ion channel genes. So, for example, among Hispanic American women with high magnesium intake, those with one particular variant had a 35% lower risk of developing type 2 diabetes.
The study involved 7,287 black women and 3,285 Hispanic women aged 50-79.
Chan, K. H. K., Chacko, S. A., Song, Y., Cho, M., Eaton, C. B., Wu, W.-C. H., & Liu, S. (2015). Genetic Variations in Magnesium-Related Ion Channels May Affect Diabetes Risk among African American and Hispanic American Women. The Journal of Nutrition, 145(3), 418–424. http://doi.org/10.3945/jn.114.203489