added casts to remove xcode complaints

Hello,

just added a couple casts since xcode was complaining about types in opusfile