The problem is that value is of type Object.