2 things to check for.
A post object field that only allows one selection is not stored as an array in the DB.
If the post object field allows multiple then it is stored as an array but all of the IDs in the array are stored as strings and not integers.