Preheat your oven to 350°F (175°C). Lightly grease a 9x9 or 8x8-inch baking dish.
In a large bowl, mix together the cream of mushroom soup, milk, soy sauce (if using), and black pepper until smooth.
Add the cooked green beans and ⅔ cup of the crispy fried onions to the sauce mixture. Stir until everything is well coated.
Pour the mixture into the prepared baking dish. Bake for 25 minutes, until hot and bubbling.
Carefully remove the dish from the oven and top with the remaining crispy fried onions (and cheese if using). Return to the oven for an additional 5 minutes, or until the topping is golden.
Let cool slightly and serve hot alongside your favorite main dishes.