add type convertion functions for all types