Taking blood pressure medication is a risk factor for type 2 diabetes.