Map objects to and from the Core Foundation types