obtain current object on save
unify id field in casted array