CLOUDIFY-2698 fixed illegal cast from float to int