validation BUGFIX import fix
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 2f540f8..c435643 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -592,8 +592,8 @@
LY_CHECK_GOTO(ret, cleanup);
/* add any missing default children */
- ret = lyd_validate_defaults_r((struct lyd_node_inner *)cur, lyd_node_children_p(cur), NULL, NULL,
- &lydctx->unres_node_type, &lydctx->when_check, lydctx->options);
+ ret = lyd_validate_defaults_r(cur, lyd_node_children_p(cur), NULL, NULL, &lydctx->unres_node_type,
+ &lydctx->when_check, lydctx->options);
LY_CHECK_GOTO(ret, cleanup);
}