The purpose of this study is to compare the effect of 16 weeks treatment with vildagliptin to pioglitazone as add-on the therapy to metformin in patients with type 2 diabetes inadequately controlled with metformin monotherapy.