pragma strict issues with iOS

iOS is killing me. everything works dandily until I tossed #pragma strict at the top of the script to get some things working on the iPad. putting #pragma downcast along with it got rid of nearly 50 errors. right now, i'm wrestling with the following error:

Operator '+' cannot be used with a left hand side of type 'int' and a right hand side of type 'Object'.

this is in response to passing a parameter (the number 5) from another script into the following function:

function SomeFunction(selectedRoll){
    pos = currentPos + selectedRoll'
}

so, without pragma strict, 5 is passed as an int. but with it, it becomes an object for some reason. help?

selectedRoll is untyped in your example above, you should type it as int like such:

function SomeFunction(selectedRoll : int){