Explicit conversion from the Casimir force to Planck's law of radiation