The code block shown below contains an error. The code block is intended to return a new DataFrame from DataFrame storesDF where column storeId is of the type string. Identify the error.
Code block:
storesDF.withColumn(“storeId”, cast(col(“storeId”), StringType()))