Stav dette: Effects of latent heating on atmospheres of brown dwarfs and directly imaged planets