Preheat the oven to 350°F.
Spread the bread cubes on a baking sheet and toast them in the oven for 10 to 12 minutes until lightly crisp and golden.
Heat the olive oil in a large skillet over medium heat.
Add the diced onion and cook for 3 to 4 minutes until softened.
Add the diced celery and continue cooking for 2 minutes.
Stir in the diced apple, cranberries, and minced garlic.
Cook for 5 to 7 minutes until the apples begin to soften and the cranberries turn glossy.
Add the dried thyme, dried sage, dried rosemary, salt, and black pepper and stir well to coat the mixture.
Transfer the toasted bread cubes to a large mixing bowl.
Pour the warm skillet mixture over the bread cubes.
Drizzle the melted butter over everything.
Pour in the broth evenly across the bowl.
Add the beaten egg.
Gently fold the mixture together until all bread cubes are lightly moistened but not soggy.
Transfer the stuffing mixture into a greased 9x13-inch baking dish.
Spread it evenly without pressing down too firmly.
Cover the dish with foil.
Bake for 30 minutes.
Remove the foil and bake for an additional 20 to 25 minutes until the top is golden brown and crisp.
Remove from the oven and let the stuffing sit for 5 minutes before serving.
Garnish with chopped fresh parsley if desired.