The conversion of one form of energy into another, such as the transformation of light waves into neural impulses.