title: How do I convert a int to an array of byte's and then back?
body: <p>I need to send an integer through a NetworkStream. The problem is that I only can send bytes.
  Thats why I need to split the integer in four byte's and send those and at the other end convert it back to a int.</p>
  
  <p>For now I need this only in C#. But for the final project I will need to convert the four bytes to an int in Lua.</p>
  
  <p>[EDIT]
  How about in Lua?</p>