How to change the type of a variable for a loaded table?

You may have entered a typo, below is the exact script I just ran in a fresh environment

using JuliaDB, ScientificTypes

t = JuliaDB.table(1:10, randn(10), rand(Bool, 10); names = [:x, :y, :z]);

t2 = coerce(t, :z => Multiclass)

@show typeof(t2)
@show typeof(select(t2, :z))

Here’s the output

typeof(t2) = IndexedTable{StructArrays.StructArray{NamedTuple{(:x, :y, :z),Tuple{Int64,Float64,CategoricalArrays.CategoricalValue{Bool,UInt8}}},1,NamedTuple{(:x, :y, :z),Tuple{Array{Int64,1},Array{Float64,1},CategoricalArrays.CategoricalArray{Bool,1,UInt8,Bool,CategoricalArrays.CategoricalValue{Bool,UInt8},Union{}}}},Int64}}
typeof(select(t2, :z)) = CategoricalArrays.CategoricalArray{Bool,1,UInt8,Bool,CategoricalArrays.CategoricalValue{Bool,UInt8},Union{}}

I’m on Julia 1.3.1 with JuliaDB 0.13 and ScientificType 0.3.2