Heat the oil in a large skillet on medium high. Add the onion and sauté for 3 minutes, stirring occasionally. Add the beef and season with salt and pepper. Cook until beef is no longer pink.
Meanwhile, cook your pasta according to package directions for firm al dente. Strain pasta and set aside.
Once the beef is cooked, add the tomato sauce, tomatoes and chilies, beans, chili powder, cumin, cayenne powder, and water. Mix well and then let simmer for 5 minutes. Add the pasta and stir to combine.
Pour the mixture into your prepared pan and top with cheese. Let bake for 30 minutes or until the edges are bubbly and the cheese has fully melted.