Added more type conversion functions