In the meantime prepare the vanilla layer: Put all the ingredients in a pot. Bring to the boil, stirring constantly. Switch back to medium heat and simmer for 3-4 minutes until the cream thickens a little. Empty into the tart tin. Allow to cool for 30 minutes at room temperature, then refrigerate for at least 2 hours in the refrigerator.