In this case, don't do the check as numpy.array will guess the value as int64 whatever the original dtype might be. In this case return 0 as the dtype requested.