Boiling an egg in an air fryer? Yep, it works! The shell protects the eggs from the heat, allowing them to cook and turn solid exactly as they do when submerged in boiling water. The heat will also puff up the pastry cases more than a conventional oven and give them an even, glossy golden finish all over.