Preheat oven to 350 F. Cook pasta according to package directions, drain and place pasta into a greased baking dish.
Sprinkle flour onto the pasta. Top with butter and sprinkle shredded cheese. Pour milk evenly over the entire casserole.
Cover pasta with foil and bake for 30 minutes. Uncover and bake for another 10-15 minutes.