Preheat the oven to 190 degrees Celsius. Lightly grease a 2-liter baking dish and set it aside.
Place the cashews in a bowl and pour 480 milliliters of the hot water over them. Let them soak for 20 minutes while you prepare the remaining ingredients.
Bring a large pot of well-salted water to a boil. Add the green beans and blanch them for 4 minutes until bright green and just tender. Drain immediately and rinse under cold water or transfer to an ice bath to stop the cooking. Drain well and set aside.
In a blender, combine the soaked cashews and their soaking water with the remaining 240 milliliters hot water. Blend until very smooth and creamy, about 1 to 2 minutes, then set aside.
Heat the olive oil in a large skillet over medium heat. Add the onion and cook for 4 minutes until softened. Add the mushrooms and cook for 6 to 8 minutes, stirring occasionally, until they release their moisture and begin to brown.
Stir in the garlic and thyme and cook for 30 seconds until fragrant. Sprinkle in the flour and stir constantly for 1 minute so the flour coats the vegetables and loses its raw taste.
Slowly pour in the vegetable broth while stirring, then add the blended cashew cream, salt, black pepper, and smoked paprika. Cook for 3 to 4 minutes, stirring often, until the sauce thickens enough to coat a spoon.
Add the blanched green beans to the skillet and fold gently until they are evenly coated in the sauce. Transfer the mixture to the prepared baking dish and spread it into an even layer.
Bake uncovered for 20 minutes until the casserole is hot and bubbling around the edges. Remove the dish from the oven, sprinkle the fried onions evenly over the top, and return it to the oven for 5 minutes more until the topping is crisp and golden.
Let the casserole rest for 5 minutes before serving so the sauce can settle slightly and the portions hold together better.