Critical current of superconducting magnets wound from an anisotropic superconducting conductor