Since the 1950s, in Latin America socialist revolutionaries often become the overcompensating remedy for CIA-backed dictators like Fulgencio Batista. Fidel Castro is one of them.
Just like in Orwell's Animal Farm, many of the socialist leaders ended up becoming brutal dictators themselves, but they're not the antagonists in a clear line between good and evil. For every action there is an equal and opposite reaction, Castro is merely the response to what Naomi Klein refer as the "Shock Doctrine", which have created open veins in the region.
Rest in peace, or rot in hell, Fidel Castro. Whatever.