>>14
sprintf
What you did is quite wrong, C isn't SEPPLES or other high-level languages, when you cast something like that you'll just treat a piece of data as another type instead of actually convert it - doing that without proper understanding will only lead to wrong results.