Use this basic recipe as a guide for how to cook dried beans. This recipe uses pinto beans, but you can adapt it to any other type of bean by adjusting the cooking time accordingly. You can also cook dried beans in a slow cooker or pressure cooker.