Fix type-check in xml converter.