A solid rectangular metal box of 8 inches long, 2 inches wide and 4 inches deep is melted down. All the liquid metal is used to case a cube. What is the length of one side of the cube?