title: Fast method of converting all strings in a list to integers
body: <p>I've gone through the <a href="https://stackoverflow.com/questions/7368789/convert-all-strings-in-a-list-to-int">Convert all strings in a list to int</a> post</p>
  
  <p>I want to convert </p>
  
  <pre><code>results = ['1', '2', '3']
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>results = [1, 2, 3]
  </code></pre>
  
  <p>I know i can do it by </p>
  
  <blockquote>
    <ol>
    <li>map(int, results)</li>
    </ol>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <ol start="2">
    <li>results = list(map(int, results))</li>
    </ol>
  </blockquote>
  
  <p>I want it faster way may be using numpy or more faster.</p>
  
  <p>Actual code is</p>
  
  <pre><code>from sys import stdin, stdout
  import numpy as np
  n = int(stdin.readline())
  
  
  for i in range(0,n):
      lone = 0
      m = int(stdin.readline())
      results = stdin.readline().split()
      o = np.array(results, dtype=np.int64)
      for j in range (0,m):
          if o[j] in  o[j+1:m]:
              lone = lone +1
          elif o[j] in o [0:j]:
              lone = lone +1
          else:
              stdout.write(str(o[j]) + '\n')
  
      if lone == m:
          stdout.write ("-1 \n")
  </code></pre>
  
  <p>Please let me know if there is any methods to achieve this when trying to work with thousands of strings </p>