Recently I found that there is an issue with the Service Bus connector sending custom message header to the topics/subscription. The issue is the connector treat the text as string in spite of providing numeric or boolean values.
According to the below link
If the content is true or false (case-sensitive!), then the broker treats it as a System.Boolean with the corresponding value.
If the content can be parsed as an integer, then the broker treats it as a System.Int64.
I’ve raised this with Microsoft.
I have got an update from the Microsoft Logic App product group acknowledging it as a bug fix of Service Bus connector treating all properties key value pairs as strings and they are actively working on it. The fix might be available in next year Jan.