Expression has the type '|1' which is a restricted type and cannot be used to access members inherited from 'Object' or 'ValueType'. ...