Type casting / conversion functions.