Chapter 4: "Lecture: Array Operators"

I am not able to update field from string to array.

I am using Mongodb version of 4.2

I tried below query:
db.companies.update({“twitter_username” : “cafescribeteam”}, {"$push" : {“alias_list”: “test”}})

Error message which I am getting is “The field ‘alias_list’ must be an array but is of type string in document”

Is it not possible to convert field to array type just using $push or something is missing in query?