In an electric motor, electrical energy is converted into mechanical energy.
In a dynamo, mechanical energy is converted into electric energy.
In a solar cell, the solar energy is converted into electrical energy.
In a loudspeaker, electrical energy is converted into sound energy.