In general
A nonresident alien individual with respect to whom this subsection is in effect for the taxable year shall be treated as a resident of the United States—
(A) for purposes of chapter 1 for all of such taxable year, and
(B) for purposes of chapter 24 (relating to wage withholding) for payments of wages made during such taxable year.