‘Castro ready to solve issue of prisoners’