Cast objc_msgSend to the correct method prototype

Thanks to @steipete for the hint