Fix errors with casting from id in objc_cast