Why is a type when used as a function given a boolean true return a number?

Please refer to this
https://discourse.julialang.org/t/how-to-get-a-square-matrix-of-mynum-struct-to-inverse/21247