title: Converting an int variable to a float
body: <p>So I have a homework thing that asks me "How do you convert an int to a float?".</p>
  
  <p>Google searches gives me alot of different results, the most promising being Type Casting. 
  But what I'm unsure of is how I make the <strong>variable</strong> itself a float from an int.</p>
  
  <p>I.e, i have <code>int n=5</code> , and want to later convert it so that it is treated as a float until the code specifies otherwise. How can I do that? 
  Can i just do: <code>n = (float)n</code>?</p>
  
  <p>Thanks in advance!</p>