Use getDates() for type check

Fixes #63