[cs] Fixed casting on OpAssign. Closes #3512