Reduce implicit type casts.
Merge pull request #1884 from monaka/pr-reduce-implicit-type-cast

Reduce implicit type casts.