code: func (s *stack) PeekInt(idx int32) (scriptNum, error) {
  	so, err := s.PeekByteArray(idx)
  	if err != nil {
  		return 0, err
  	}
  
  	return makeScriptNum(so, s.verifyMinimalData, defaultScriptNumLen)
  }
docs: // PeekInt returns the Nth item on the stack as a script num without removing
  // it.  The act of converting to a script num enforces the consensus rules
  // imposed on data interpreted as numbers.