No space between (uint8_t) and ((record_type)). No parentheses around record_type are desired either.