`Complex` is an overly general type. The best approach here may be to use a list comprehension, which should determine the type of the array on its own.