removing cast warning
Merge pull request #64 from fotonauts/cast-warning

removing cast warning