Use IntPtr for CFRange (missing casts)