added type conversion creation functions
now working