added int casting
Merge pull request #1 from yuttadhammo/master

(int) casting to match serviceId