Cook the quartered sweet potatoes (I do this over steam) and peel off the peel.
Finely mash the sweet potatoes and tofu with a fork. Mix the two well with the chickpea flour in a larger bowl. Add the corn and cashew nuts and mix well again. Season the whole thing with ginger, garam masala, salt and possibly chilli to taste.
Shape the mixture into 12 patties and spread them on a baking sheet lined with baking paper.
Bake in the hot oven for about 40 to 50 minutes. Turn the patties after 25 minutes.