CONN-1438

Fixed impossible cast