You’ll need to remove the Rs. at the start, as it can’t convert currency codes to integer.
Assuming the string is a variable you could use:
var.remove(0,3)
And this would remove the first three characters (Rs.) and then you can convert that to integer. For more help see this forum link