The cuban revolution in the beginning had nothing to do with Marxism, they were just militants, it was only later that communism came into play. I think that is what reddiver was trying to say and hes right about that. Castro didn't even know the philosophy, to quote a castro speech from many years after the revolution (and I am paraphrasing and from memory, and translated): "If taking care of the poor and giving our peoples jobs and an education is communism then I guess we are communists". Castro was entirely naive to political philosophy, he was just a militant revolutionary. Castro saw it as strategically advantageous to ally with the marxists militarily because of the threats of the U.S.
To be fair, following the revolution castro was indeed communist immediately implementing a government which could be considered only as such, but I really feel that he was not smart enough to understand that theory, and I feel that in cuba it even kind of worked. On such a small island its sort of like a giant hippie commune maybe, if it was among capitalism it would have been very strong but there was the downfall in being enemies with the capitalist to the north.