Casts this WorkerComputeConfigurationProperties as a Spark and retrieves its kotlin.collections.Map value. Throws an exception if the WorkerComputeConfigurationProperties is not a Spark.