Triangle or Square

Dissect an equilateral triangle into four parts such that the parts can be rearranged into a square.

Extension:
Dissect a square into four parts such that the parts can be rearranged into an equilateral triangle.