Changed method of converting string to int in SP