Preheat oven to 180°C and butter a 20 cm square cake tin.
Purée sweet potato in a food processor with all ingredients except yoghurt and polenta.
Stir in yoghurt and polenta and pour into prepared tin.
Bake for 45 minutes or until a fine skewer inserted in centre comes out clean.
Cool a little before turning out and cutting into squares.
