Cast to array instead of doing checks.