add operator* and a static assert against reference types