fix casting of co_obj data access