I think for now it would make more sense to check `layer instanceof ol.layer.Vector` and cast if so.

I don't think we should add things to the base class that will never be implemented by subclasses.