added method convertToBase()