CONN-1438: Fixed impossible cast
Merge pull request #948 from christophermay07/CONN-1438

CONN-1438