also catch TypeError when forcing values to int or float