Instead of checking for specific types (Int64, Float64), check for the supertype:
if x isa Number
#do something
else
Instead of checking for specific types (Int64, Float64), check for the supertype:
if x isa Number
#do something
else