look up for custom typecasters

fix for the issue #607