Place the pumpkin (skin removed) in a pot with boiling water, and cook until it is soft (soft enough so you can mash it with the back of a fork). It should take about 20 minutes.
In the meanwhile, place the cashews in a bowl with hot boiled water and soak for 10 minutes.
When the pumpkin has softened enough, remove it from water and place it along with the drained cashews, the nutmeg and the salt in a blender, and blend until it reaches a smooth and creamy texture.
Cook the pasta according to the manufacturer instructions on the box. A couple minutes before the pasta is about to be ready, heat a large skillet with one tablespoon olive oil and one teaspoon sesame oil, add the pumpkin sauce in and mix, then drain the pasta and add it to the pan. Mix to make sure all pieces are nicely coated with the pumpkin sauce. Serve warm, optionally with some pumpkin seeds and basil leaves on top.