I think your question relating to a question that was answered before. You can check it in here: http://lovelace.augustana.edu/q2a/index.php/4166/how-do-you-change-an-argument-into-an-integer
Hope this helps!