Fix in dcast
Removed invalid use of this in ctor.
Merge pull request #31 from UCSD-PL/fix_downcast

Fix downcast