Pipes should take an expectsAs argument which defines an Object type the input data must be. If it isn't it should raise an error.