Cast h8 to the correct type for the Lyra2 function