Null when creating view filter with integers

Hi, im trying to create a bunch of view filters using a shared parameter with integer datatype but the FilterRule.ByRuleType Null the values, if i use a string “data type” the conversion makes the value enormous. How can i make this work without changing the data type on the shared parameter?