Added basic type conversion for value types.

v1.0.0.2
1. Added basic type conversion for value types.
2. Added unit tests for type conversion.
3. Added performance logging metrics in code comments to begin to
roughly measure the performance effects of code changes.
4. Handle null inputs gracefully.