AR-1725 - adding cast to fix 64 bit build