There should not be a space between (uint16_t) and link_metric. The same comment applies to a few lines below.