Fix compile cast warnings present in VS
Revert "Fix compile cast warnings present in VS"

This reverts commit 899af3a7d6ad2535314b870f56dcf12a6b47126f.
Fix type mismatch causing VS compile warn
Merge pull request #196 from elementc/development

Fix type mismatch (C4244) in VS builds