make ToDId type class more flexible

accept any type that is viewable as a Long
Merge pull request #67 from pellucidanalytics/topic/dlong-view-ToDId

improve ToDId type class