Ensure correct type for delete_obj() and update_obj() functions

Relates to issue #7, but is not an ideal fix.