added some type converters