title: How does the computer convert between types
body: <p>So a common question you see on SO is how to convert between type x and type z but I want to know how does the computer do this? </p>
  
  <p>For example, how does it take an int out of a string?</p>
  
  <p>My theory is that a string is a char array at its core so its going index by index and checking it against the ascii table. If it falls within the range of ints then its added to the integer. Does it happen at an even lower level than this? Is there bitmasking taking place? How does this happen? </p>
  
  <p>Disclaimer: not for school, just curious. </p>