use flour and butter
similar to cornstarch, flour and butter are amazing thickening agents that can help you achieve the desired consistency for your baked beans. i've found that the best type of flour to use as a thickening agent for your baked beans is instant flour.