title: Convert Unicode data to int in python
body: <p>I am getting values passed from url as :</p>
  
  <pre><code>user_data = {}
  if (request.args.get('title')) :
      user_data['title'] =request.args.get('title')
  if(request.args.get('limit')) :
      user_data['limit'] =    request.args.get('limit')
  </code></pre>
  
  <p>Then using it as</p>
  
  <pre><code>if 'limit' in user_data :
      limit = user_data['limit']
  conditions['id'] = {'id':1}
  int(limit)
  print type(limit)
  data = db.entry.find(conditions).limit(limit)
  </code></pre>
  
  <p>It prints : <code>&lt;type 'unicode'&gt;</code></p>
  
  <p>but i keep getting the <code>type</code> of <code>limit</code> as <code>unicode</code>, which raises an error from query!! I am  converting unicode to int but why is it not converting??
  Please help!!!</p>