Support for wrapping friend_id and contact_id in custom objects