Add cast to tuple to merge node