Before making the filling, boil potatoes. Boil potatoes in salted water in an uncovered pot for 20-25 minutes. Alternatively, pressure cook them. If pressure cooking, cook for 5 minutes on low after the first whistle.
Let potatoes cool, peel of the skin, and mash them.
In a medium saucepan over medium heat, toast cashews without any oil for a few minutes. Take the cashews out and add 1 tbsp of avocado oil.
Add cumin seeds and ginger. Stir and cook for 2 minutes. Add green chilis and stir some more. Then add spices. Stir for 30 seconds before adding peas.
Cook peas for another minute before adding the potatoes. Once you add the potatoes, mix them with everything else for about 5-7 minutes. Set aside so they can cool before you fill the samosas.