Preheat the oven to 180 C/350 F and grease a baking pan with butter.
In a large pot, bring water to a boil, then add the pasta and salt; cook for 10 to 12 minutes or according to the packet instructions until pasta is soft. Then drain the pasta in a colander.
1 cup macaroni
In a small bowl, whisk milk, eggs, sugar and vanilla extract until combined.
½ cup sugar golden caster, 2 cups milk, 2 eggs, ½ tsp ground cinnamon, 1 tsp vanilla extract, pinch of salt
Pour the caster mixture over the cooked macaroni and mix. Then, pour the whole mixture into the baking pan and bake in the oven for 50-55 minutes.