gray-inferencer: should no longer cast to long (thanks @bgilbert)