Safer interaction with Obj-C APIs