Unit type functions work on units