Use static_cast to avoid warnings about changing signedness
Catch node_id as dof_id_type.