Proper type conversion