Implemented a converter to cast the dynamic types