Traditional castagnaccio is made with chestnut flour, which gives it a unique flavor. While you can experiment with other flours, the resulting cake may have a different taste and texture.