Ensure that role ID is numeric.

If not cast, it is possible for the to_xml call to fail because of
using a String in > 0.