PIUtil is more convenient if it returned objects

Currently it returns a primitive long, but I would prefer it if it returned Longs.