- if self.cast == "string" and type(value) == "table" then
- value = table.concat(value, " ")
- elseif self.cast == "table" and type(value) == "string" then
- local x, t = { }
- for x in value:gmatch("%S+") do
- if #x > 0 then
+ local t = { }
+
+ if type(value) == "table" then
+ local x
+ for _, x in ipairs(value) do
+ if x and #x > 0 then