Preheat the air fryer. Grease ovenproof baking dish, suitable to fit your air fryer. Prepare topping and set aside. Mash sweet potatoes and butter in large bowl. Beat with electric mixer at medium speed until light and fluffy.
Add sugar, milk, eggs, and vanilla, beating after each addition. Spread evenly in the prepared baking dish. Spoon topping over the potatoes, sprinkle with pecans and raisins.