Fix wrong cast of op.

Merged Ghislain MARY requested to merge fix/wrong-op-cast into master

Merge request reports