Dispatch on Type

You want foo(type::Type{T}) where T<:Number