Conversion mechanism for solving the end-stop problem of hydraulic power take-off system for wave energy