In a large glass bowl, sift together the all-purpose flour, baking powder, baking soda, and salt. Using an electric beater, beat the unsalted butter and cream cheese until smooth and well-blended. Add the castor sugar in three parts, and beat well after each addition, until the mixture is light and fluffy. Add one egg at a time and beat continuously.