Integer in Headers

I want to send integer in header but upon passing it I get error from site that it is not integer rather it is string does anybody knows how to fix that?