Checking if variable is a type of number

Instead of checking for specific types (Int64, Float64), check for the supertype:

if x isa Number
    #do something
else
9 Likes