fix RichValue#as

to enable parametrized type to be converted from value using RichValue#as
Merge pull request #11 from choplin/richvalue-as

fix RichValue#as