Add debug output for conversions