Merge pull request #166 from jbrucenet/master

Fixing TypeCast errors for time based functions.