Implemented the 'ofType' operator