Passing a number via page arguments in hook_menu()
I normally just wrap the value in quotes, that should convince the router system to leave it alone:

'page arguments' =&gt; array("$record-&gt;id", 2)