fix type check failure (Int32 vs Int64)
Merge pull request #371 from sbergot/master

fix type check failure (Int32 vs Int64)