Implemented the 'cast' and 'ofType' operators

Hi,

I used 'map' to implement the 'cast' operator #26. I also used 'cast' to implement the 'ofType' operator #67.
Please take a look. Thanks!