conveniont version of GetIntegerv