You want the subtype operator (<:) - see docs here and here
<:
is_acceptable(coltype) = coltype <: Union{Number, Missing} julia> is_acceptable(Float64) true julia> is_acceptable(Union{Int8, Missing}) true julia> is_acceptable(String) false