It does not matter what the return format of the field is. A post object field always holds the post ID of the related post or an array of post IDs if the field allows multiple selections. Return format has no bearing on values stored in the database and you must use the values as ACF stores them in the DB when updating a field.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users