Added a convert method that requires only a UnitBase (instead of Unit)

Add a convert method that requires only a UnitBase (instead of Unit) #27