to method

double to(
  1. Energy to
)

Implementation

double to(Energy to) => convertEnergy(from, to, number);