Grease a 9x13 baking dish with cooking spray and set aside.Place cashews in a bowl and cover with hot water. Set aside to soak for 30 minutes or overnight. (If you have a nutribullet or high speed blender, 10 minutes of soaking is fine.)Meanwhile, preheat oven to 475F. Thinly slice two of the onions, setting aside the other onion for later. Combined sliced onions with bread crumbs, flour and ¾ tsp salt in a large bowl, tossing to combine. Be sure to separate each individual onion piece. Spread onions in an even layer on a baking sheet sprayed with cooking spray or lined with a Silipat. Spray once again with cooking spray. Bake for about 20 minutes, tossing halfway through. Watch carefully to make sure they don't burn towards the end of cooking. Once onions are done, remove from oven and lower oven heat to 350F for casserole.Bring a large pot with two inches of water to a boil. Once boiling add green beans. Bring back to a boil (this may take a while) and cook over medium heat for about 5 minutes, or until tender. Drain and run cold water over green beans to stop cooking. Set aside.In a large skillet, heat olive oil over medium heat. Chop remaining onion. Once hot, ad to pan and cook for about five minutes before adding garlic and mushrooms. Cook for another ten minutes, stirring often. Add nutmeg, soy sauce, white wine, 1½ tsp salt, and pepper. (It will taste salty, that's ok!). Simmer for about five minutes.Blend soaked cashews with almond milk in a blender or food processor (I used my nutribullet) until completely smooth and creamy. Set aside.Stir in cashew cream and ¼ of the baked onions. Stir in cooked green beans.Spread mixture into prepared dish. Top with remaining baked onions. Bake at 350F for 20 minutes (if onions are on the crispier side, you can cover with foil for first half of cooking.) Serve hot!