Corrected casted types
Merge pull request #21 from goldhoorn/time_fix

Corrected casted types