Changes addHost to generate proper Long objects