Add proper cast to eliminate size mismatch warning
Merge pull request #818 from jbrodman/master

Add proper cast to eliminate size mismatch warning