Fixed terrible casting bug
Fixed terrible casting bug


Former-commit-id: ccc65b89654ac63a748f0ba0f599f3d58421fbe6 [formerly ccc65b89654ac63a748f0ba0f599f3d58421fbe6 [formerly 570f21542e1e6de609505d02daf6d926abc5d06f]]
Former-commit-id: be4d5aa0c9c1ffa097f3a03ad1d2c46afdd869ab
Former-commit-id: 437cd22d52b8f73359715c9f4c18ed39b85d0ca9
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine