Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@JasonClark I had an earlier version where I did something like this. I've just tried again with what I currently have with the same result. It's certainly some issue with that variable.
I have similar logging and code attempt in my copy and both work without issues. I can see in the logs that it's an Integer with a value of 15 and the local variable works without issues. So there is something specific to that parameter variable not being able to bind. I've updated the question to try and make clearer some things I've tested and seen.