explicitly cast the NULL values (if node is empty in alternative)