Divide the batter evenly among the prepared pans. Bake the square pans for 40-45 minutes or the round pans for 35-40 minutes. To check for doneness, insert a toothpick into the center of the cake; it should come out clean. Once baked, allow the cakes to cool before frosting.
Making the Coconut Pecan Frosting
To prepare the coconut pecan frosting, combine sugar, butter, evaporated milk, vanilla extract, and egg yolks in a saucepan. Cook over medium heat, stirring occasionally, until the mixture thickens, which should take about 12 minutes. Once thickened, remove from heat and stir in the flaked coconut and chopped pecans. Beat the mixture until it reaches a spreading consistency, then allow it to cool and thicken before icing the cake.
In conclusion, this German chocolate cake with coconut pecan frosting is a timeless dessert that brings joy to any occasion. Its rich flavors and delightful textures make it a standout treat that will leave a lasting impression on your guests. Bake this cake for your next celebration, and watch as it becomes a beloved favorite!