Heat oil in a large saucepan, soup pot, or Tefal 45-in-1.
Add onion and garlic (if using) and cook, stirring for 1-2 minutes.
Add the pumpkin pieces (and sweet potato if using) and stir through.
Add the stock and bring to a simmer.
Simmer for 30-40 minutes until the pumpkin is very soft. (If using the 45-in-1, close the lid and select the soup function. The machine will cook for 40 minutes and alert you with a beep when it is done.)
Once cooked, use a handheld stick blender (or regular blender if you don’t have a stick blender) to puree the soup until smooth and creamy.
Taste the soup - season if necessary.
If the soup is lacking in flavour, add the can of creamed corn to add sweetness and taste.
Return to low heat and stir the creamed corn through the soup.
Serve with a dollop of cream if desired and/or crusty bread.
Enjoy!