Who was the president of Cuba before Castro?

Before Raul Castro, it was Fidel Castro. If you mean before Fidel Castro then it was Osvaldo Dorticos Torrado.