Corrected type conversion