Added some functions for type conversion.

Signed-off-by: Brian Nash <bcnjr5@MB.(none)>