parseLong for primitives