fixed typo in type conversion