add xs as_integer