Fix casting defect
Merge pull request #20 from jjcomer/manual

Fix casting defect