FW-177. Fix cast warning for amd64-windows build