Preheat the oven to 425°F. The oven needs to be good and hot before you put the beans in. Mix the beans with the olive oil, salt and pepper, and dried basil.
Roast the beans for ten minutes, give them a stir, and roast for five more minutes. Remove the pan from the oven and sprinkle the beans with the cheese. Serve immediately.