Changed conversion methods

Now using built-in C++ functions to handle numeric conversions.

Exception handling for invalid input has not been implemented yet.