Type casting and conversion routines for Mirificus.