ENH: Avoiding conversion of long to NumPy Scalar.
Added avoiding of conversion of long, extracting its value