Grease a 9 by 13 inch baking dish. Place the bread cubes in the dish in an even layer.
Whisk the eggs, milk, granulated sugar, vanilla, 2 teaspoons cinnamon, and salt in a large bowl until smooth.
Pour the custard evenly over the bread. Press gently with a spatula so all pieces are moistened.
Cover the dish tightly and refrigerate overnight, or for at least 4 hours.
Heat the oven to 350 degrees Fahrenheit. Remove the dish from the refrigerator while the oven heats.
Dot the top with butter pieces. Sprinkle over the brown sugar, 1 teaspoon cinnamon, and pecans if using.
Bake for 45 to 55 minutes, until the center is set, a knife inserted in the center comes out clean, and the top is deep golden.
Rest for 10 minutes before cutting into squares. Serve warm with maple syrup and fresh berries.