wp_set_object_terms not accepting variable array

Ok, so it turned out that my array was an array of strings somehow, which using var_dump (instead of print_r) revealed. Then I needed to convert my array to int values, which I did thus:

$myissuearrayINT = array_map('intval', $myissuearray);

And now, when I do the following it works as expected:

wp_set_object_terms( $myID, $myissuearrayINT, 'my_issues', true );

Hope this helps someone else out there…