Fixed an issue with the type conversion