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