Preheat your oven to 180°C (350°F) and line a cupcake tin with cupcake liners.
In a saucepan, combine the Guinness stout and cubed butter. Heat over medium heat until the butter is melted, then remove from the heat. Whisk in the sifted cocoa powder and caster sugar until smooth.
In a separate mixing bowl, whisk together the sour cream, eggs, and vanilla extract until well combined. Gradually pour in the Guinness mixture, whisking continuously until fully incorporated.
Sift the plain flour and bicarbonate of soda into the wet mixture. Fold gently until just combined, being careful not to overmix.
Spoon the batter into the prepared cupcake liners, filling each one about two-thirds full.
Bake in the preheated oven for 18-20 minutes, or until a skewer inserted into the center of a cupcake comes out clean. Allow the cupcakes to cool in the tin for a few minutes before transferring them to a cooling rack to cool completely.
In a large mixing bowl, beat the softened cream cheese and butter together until smooth and creamy.
Gradually add the sifted icing sugar, beating continuously until the frosting is light and fluffy.
Add the vanilla extract and beat until fully incorporated.
Once the cupcakes are completely cool, use a piping bag or spatula to generously frost each cupcake with the cream cheese frosting.
