Fixed issue with typcasting from string to long.
Remember that a request attribute is of type object.
You are free to set an attribute of any type.
Only do the casting when getting the attribute.